Skip to content

Commit

Permalink
[ci] limit cherry-pick workflow concurrency per PR
Browse files Browse the repository at this point in the history
Signed-off-by: Gary Guo <[email protected]>
  • Loading branch information
nbdd0121 authored and jwnrt committed Nov 25, 2024
1 parent 7cf6843 commit 6e03389
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/cherrypick.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ on:
permissions:
contents: read

# 2 backport jobs may be running simultaneously if the merge and label event happen in quick
# succession. Serialize them based on PR number to avoid this.
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: false

jobs:
cherrypick:
# NOTE: We currently need these permissions because we create pull request with the repo-scoped
Expand Down

0 comments on commit 6e03389

Please sign in to comment.