From ebe1d922efd50efffb0021ffed08ff0dd364d1ec Mon Sep 17 00:00:00 2001 From: Javier Neira <atreyu.bbb@gmail.com> Date: Sat, 30 Oct 2021 13:51:49 +0200 Subject: [PATCH] [skip circleci] Add option to effectively cancel prev runs (#2310) * Add option to cancel prev runs Without using skip-duplicate-actions which is failing due to github access permission. See https://github.com/fkirc/skip-duplicate-actions/issues/103 * Cancel by branch *and* workflow Without it will cancel other workflows for the same branch Credits: 7b371e8b * Disable cancelling other runs Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> --- .github/workflows/test.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 70145d78..d39cd2c5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,6 +4,11 @@ defaults: run: shell: bash +# See: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#concurrency. +concurrency: + group: ${{ github.head_ref }}-${{ github.workflow }} + cancel-in-progress: true + on: pull_request: branches: @@ -19,12 +24,13 @@ jobs: - id: skip_check uses: fkirc/skip-duplicate-actions@v3.4.0 with: - cancel_others: true + cancel_others: false paths_ignore: '["**/docs/**", "**.md", "**/LICENSE", "install/**", "**.nix", "flake.lock", "**/README.md", "FUNDING.yml"]' # If we only change ghcide downstream packages we have not test ghcide itself - id: skip_ghcide_check uses: fkirc/skip-duplicate-actions@v3.4.0 with: + cancel_others: false paths_ignore: '["hls-test-utils/**", "plugins/**", "src/**", "exe/**", "test/**", "shake-bench/**"]' - if: steps.skip_check.outputs.should_skip == 'true' name: Skip circleci -- GitLab