Skip to content

Commit

Permalink
ci: cancel in-progress runs when new changes are pushed
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed May 1, 2024
1 parent 559d0c9 commit 364b535
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ on:
merge_group:
branches: [main]

concurrency:
# Pushing new changes to a branch will cancel any in-progress CI runs
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

# Restrict jobs in this workflow to have no permissions by default; permissions
# should be granted per job as needed using a dedicated `permissions` block
permissions: {}
Expand Down

0 comments on commit 364b535

Please sign in to comment.