Skip to content

Commit 670e83c

Browse files
authored
Update backport CI, add PR merged condition (#750)
Signed-off-by: Shenoy Pratik <[email protected]>
1 parent d5b43dd commit 670e83c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/backport.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77

88
jobs:
99
backport:
10+
if: github.event.pull_request.merged == true
1011
runs-on: ubuntu-latest
1112
permissions:
1213
contents: write
@@ -22,7 +23,8 @@ jobs:
2223
installation_id: 22958780
2324

2425
- name: Backport
25-
uses: VachaShah/backport@v1.1.4
26+
uses: VachaShah/backport@v2.2.0
2627
with:
2728
github_token: ${{ steps.github_app_token.outputs.token }}
28-
branch_name: backport/backport-${{ github.event.number }}
29+
head_template: backport/backport-<%= number %>-to-<%= base %>
30+
failure_labels: backport-failed

0 commit comments

Comments
 (0)