Skip to content

Commit 71c9f23

Browse files
authored
Merge pull request #395 from leofang/fix_backport
CI: Fix backport workflow
2 parents 4eee527 + 0ddc15c commit 71c9f23

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/backport.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ jobs:
1414
backport:
1515
name: Backport pull request
1616
if: ${{ github.repository_owner == 'nvidia' &&
17-
github.event.pull_request.merged == true
17+
github.event.pull_request.merged == true &&
18+
contains( github.event.pull_request.labels.*.name, 'to-be-backported')
1819
}}
1920
runs-on: ubuntu-latest
2021
steps:
@@ -32,6 +33,4 @@ jobs:
3233
copy_assignees: true
3334
copy_labels_pattern: true
3435
copy_requested_reviewers: true
35-
label_pattern: to-be-backported
3636
target_branches: ${{ env.OLD_BRANCH }}
37-
conflict_resolution: draft_commit_conflicts

0 commit comments

Comments
 (0)