Skip to content

Commit

Permalink
Do not run the same workflow concurrently on non-main branches
Browse files Browse the repository at this point in the history
  • Loading branch information
SomeoneToIgnore committed Dec 6, 2023
1 parent ec798e6 commit b94c335
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ on:
branches:
- "**"

concurrency:
# Allow only one workflow per any non-`main` branch.
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.ref_name == 'main' && github.sha || 'anysha' }}
cancel-in-progress: true

env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
Expand Down

0 comments on commit b94c335

Please sign in to comment.