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:
Silvan Mosberger 2024-04-24 01:59:44 +02:00 committed by GitHub
commit b219715cd0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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