Skip to content

Commit 0ddc15c

Browse files
authored
fix label_pattern usage
1 parent f64aa34 commit 0ddc15c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/backport.yml

Lines changed: 2 additions & 2 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,5 +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 }}

0 commit comments

Comments
 (0)