mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
Merge pull request #306072 from willbush/workflow/check-by-name/concurrency-group
workflows: add concurrency group to check-by-name workflow
This commit is contained in:
commit
b219715cd0
7
.github/workflows/check-by-name.yml
vendored
7
.github/workflows/check-by-name.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user