Skip to content

Commit

Permalink
Merge pull request #306072 from willbush/workflow/check-by-name/concu…
Browse files Browse the repository at this point in the history
…rrency-group

workflows: add concurrency group to check-by-name workflow
  • Loading branch information
infinisil authored Apr 23, 2024
2 parents 595998e + 75600cd commit b219715
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/check-by-name.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ on:
# so it shouldn't be a problem
types: [opened, synchronize, reopened, edited]

# Create a check-by-name concurrency group based on the branch name. if a new
# commit is pushed to the main branch while a previous run is still in progress,
# the previous run will be cancelled and the new one will start.
concurrency:
group: check-by-name-${{ github.ref }}
cancel-in-progress: true

permissions:
# We need this permission to cancel the workflow run if there's a merge conflict
actions: write
Expand Down

0 comments on commit b219715

Please sign in to comment.