Skip to content

Commit

Permalink
Cancel in progress CI jobs when there's a new commit on the branch
Browse files Browse the repository at this point in the history
  • Loading branch information
colindean authored Nov 4, 2024
1 parent f6c3a57 commit 85f4464
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
push:
branches: ['*']

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down

0 comments on commit 85f4464

Please sign in to comment.