Skip to content

Commit

Permalink
Cancel in progress workflows when new commit is pushed (#97)
Browse files Browse the repository at this point in the history
* Cancel in progress workflows when new commit is pushed

* Add comment and test cancellation
  • Loading branch information
laurenthuberdeau authored Sep 25, 2024
1 parent 6b99ec4 commit 9bc8959
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ on:
branches:
- '**' # Matches all branches

# Cancel previous runs if a new one is triggered
concurrency:
group: "${{ github.ref }}"
cancel-in-progress: true

jobs:
build-without-warnings:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 9bc8959

Please sign in to comment.