Skip to content

Commit aba2cd7

Browse files
authored
Merge pull request #352 from leofang/backport_ci
Add a backport CI workflow
2 parents 9e17c9d + 661c67a commit aba2cd7

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/backport.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Backport merged pull request
2+
3+
on:
4+
pull_request_target:
5+
types: [closed, labeled]
6+
branches:
7+
- main
8+
9+
permissions:
10+
contents: write # so it can comment
11+
pull-requests: write # so it can create pull requests
12+
13+
jobs:
14+
backport:
15+
name: Backport pull request
16+
if: ${{ github.repository_owner == 'nvidia' &&
17+
github.event.pull_request.merged == true
18+
}}
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
- name: Create backport pull requests
23+
uses: korthout/backport-action@v3
24+
with:
25+
copy_assignees: true
26+
copy_labels_pattern: true
27+
copy_requested_reviewers: true
28+
label_pattern: to-be-backported
29+
target_branches: 11.8.x

0 commit comments

Comments
 (0)