Skip to content

Commit

Permalink
ci: Cancel workflows in progress on new push to PR (#1679)
Browse files Browse the repository at this point in the history
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 <matthew.wear@gmail.com>
  • Loading branch information
kaylareopelle and mwear authored Aug 23, 2024
1 parent 1fef415 commit 21717b5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }} # Ensure that only one instance of this workflow is running per Pull Request
cancel-in-progress: true # Cancel any previous runs of this workflow

jobs:
base:
strategy:
Expand Down

0 comments on commit 21717b5

Please sign in to comment.