Skip to content

Commit 0a9a43d

Browse files
committed
Cancel CI on subsequent pushes to same PR
1 parent ac9e1e8 commit 0a9a43d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/CI.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ permissions:
1717
actions: write
1818
contents: read
1919

20+
# Cancel existing tests on the same PR if a new commit is added to a pull request
21+
concurrency:
22+
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
23+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
24+
2025
jobs:
2126
test:
2227
runs-on: ${{ matrix.runner.os }}

0 commit comments

Comments
 (0)