Skip to content

Commit

Permalink
ci: include workflow in concurrency group (#512)
Browse files Browse the repository at this point in the history
This hasn't caused problems because we don't have multiple workflows in
our standard Rails setup, but we hit it on other stacks where we do and
there's no downside so might as well do this here as best practice
  • Loading branch information
G-Rath authored Nov 30, 2023
1 parent 26f25e0 commit 68be65c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions variants/github_actions_ci/workflows/ci.yml.tt
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
- main
- production
concurrency:
# Pushing new changes to a branch will cancel any in-progress CI runs
group: ${{ github.ref }}
# Pushing new changes to a branch will cancel any in-progress CI runs of this workflow
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
RAILS_ENV: test
Expand Down

0 comments on commit 68be65c

Please sign in to comment.