Skip to content

Commit 21717b5

Browse files
kaylareopellemwear
andauthored
ci: Cancel workflows in progress on new push to PR (#1679)
This ensures only one instance of the workflow is running per PR by canceling any previous runs of the workflow. Co-authored-by: Matthew Wear <[email protected]>
1 parent 1fef415 commit 21717b5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
branches:
1010
- main
1111

12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.event.pull_request.number }} # Ensure that only one instance of this workflow is running per Pull Request
14+
cancel-in-progress: true # Cancel any previous runs of this workflow
15+
1216
jobs:
1317
base:
1418
strategy:

0 commit comments

Comments
 (0)