From ffd79a28e16dbfc0efe2dd02a1f49dc90c5d010c Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Fri, 2 Jul 2021 20:03:50 +0300 Subject: [PATCH] Added concurrency settings to auto-cancel redundant CI jobs. --- .github/workflows/ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4c4775b..37236a2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,12 @@ on: - develop - feature/** +concurrency: + group: ${{github.head_ref}} + cancel-in-progress: true + env: + GIT_FETCH_JOBS: 8 UBSAN_OPTIONS: print_stacktrace=1 jobs: @@ -150,7 +155,6 @@ jobs: - name: Setup Boost run: | - GIT_FETCH_JOBS=8 echo GITHUB_REPOSITORY: $GITHUB_REPOSITORY LIBRARY=${GITHUB_REPOSITORY#*/} echo LIBRARY: $LIBRARY @@ -213,7 +217,6 @@ jobs: - name: Setup Boost shell: cmd run: | - set GIT_FETCH_JOBS=8 echo GITHUB_REPOSITORY: %GITHUB_REPOSITORY% for /f %%i in ("%GITHUB_REPOSITORY%") do set LIBRARY=%%~nxi echo LIBRARY: %LIBRARY%