Unverified Commit b219715c authored by Silvan Mosberger's avatar Silvan Mosberger Committed by GitHub
Browse files

Merge pull request #306072 from willbush/workflow/check-by-name/concurrency-group

workflows: add concurrency group to check-by-name workflow
parents 595998e9 75600cde
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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