Skip to content

Commit

Permalink
fix(ci): Don't have PRs canceling each others jobs
Browse files Browse the repository at this point in the history
Using `head_ref`, we are making it so PRs are all in the same group.
When a new PR comes in (not just an update), it then cancels all other
PRs.  Switching to `ref` makes it so each PR is in its own concurrency
group.
  • Loading branch information
epage committed Oct 6, 2021
1 parent 5512c90 commit 8e5385c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
branches: [master]
types: [opened, reopened, synchronize]
concurrency:
group: benchmark-${{ github.head_ref }}
group: benchmark-${{ github.ref }}
cancel-in-progress: true
jobs:
benchmark:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
branches: [master]
types: [opened, reopened, synchronize]
concurrency:
group: ci-${{ github.event_name == 'pull_request' && github.head_ref || github.ref }}
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
ci:
Expand Down

0 comments on commit 8e5385c

Please sign in to comment.