Skip to content

Commit

Permalink
Merge pull request Significant-Gravitas#2203 from Pwuts/patch-2
Browse files Browse the repository at this point in the history
fix(pr-label): mitigate excessive concurrent runs
  • Loading branch information
richbeales authored Apr 17, 2023
2 parents f2baa08 + ef7b417 commit 2bb0ecf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/pr-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
# In `pull_request` we wouldn't be able to change labels of fork PRs
pull_request_target:
types: [opened, synchronize]
concurrency:
group: ${{ github.event_name == 'pull_request_target' && format('pr-label-{0}', github.event.pull_request.number) || '' }}
cancel-in-progress: ${{ github.event_name == 'pull_request_target' || '' }}

jobs:
conflicts:
Expand Down

0 comments on commit 2bb0ecf

Please sign in to comment.