Skip to content

Commit b20c753

Browse files
jneiramergify[bot]
authored andcommitted
[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 fkirc/skip-duplicate-actions#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>
1 parent cb3416f commit b20c753

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ defaults:
44
run:
55
shell: bash
66

7+
# See: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#concurrency.
8+
concurrency:
9+
group: ${{ github.head_ref }}-${{ github.workflow }}
10+
cancel-in-progress: true
11+
712
on:
813
pull_request:
914
branches:
@@ -19,12 +24,13 @@ jobs:
1924
- id: skip_check
2025
uses: fkirc/[email protected]
2126
with:
22-
cancel_others: true
27+
cancel_others: false
2328
paths_ignore: '["**/docs/**", "**.md", "**/LICENSE", "install/**", "**.nix", "flake.lock", "**/README.md", "FUNDING.yml"]'
2429
# If we only change ghcide downstream packages we have not test ghcide itself
2530
- id: skip_ghcide_check
2631
uses: fkirc/[email protected]
2732
with:
33+
cancel_others: false
2834
paths_ignore: '["hls-test-utils/**", "plugins/**", "src/**", "exe/**", "test/**", "shake-bench/**"]'
2935
- if: steps.skip_check.outputs.should_skip == 'true'
3036
name: Skip circleci

0 commit comments

Comments
 (0)