Skip to content

Commit ad6aa5b

Browse files
authored
Updating backport workflow to include custom branch name (opensearch-project#173)
Signed-off-by: Vacha Shah <vachshah@amazon.com>
1 parent fdda823 commit ad6aa5b

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/backport.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
name: Backport
22
on:
3-
pull_request:
3+
pull_request_target:
44
types:
55
- closed
66
- labeled
77

88
jobs:
99
backport:
1010
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
pull-requests: write
1114
name: Backport
1215
steps:
1316
- name: Backport
14-
uses: tibdex/backport@v1
17+
uses: VachaShah/backport@v1.1.4
1518
with:
16-
github_token: ${{ secrets.GITHUB_TOKEN }}
19+
github_token: ${{ secrets.GITHUB_TOKEN }}
20+
branch_name: backport/backport-${{ github.event.number }}

0 commit comments

Comments
 (0)