Skip to content

Commit deae554

Browse files
authored
Using Github App to trigger CI on backport PRs (opensearch-project#175)
Signed-off-by: Vacha Shah <vachshah@amazon.com>
1 parent ad6aa5b commit deae554

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/backport.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,16 @@ jobs:
1313
pull-requests: write
1414
name: Backport
1515
steps:
16+
- name: GitHub App token
17+
id: github_app_token
18+
uses: tibdex/github-app-token@v1.5.0
19+
with:
20+
app_id: ${{ secrets.APP_ID }}
21+
private_key: ${{ secrets.APP_PRIVATE_KEY }}
22+
installation_id: 22958780
23+
1624
- name: Backport
1725
uses: VachaShah/backport@v1.1.4
1826
with:
19-
github_token: ${{ secrets.GITHUB_TOKEN }}
27+
github_token: ${{ steps.github_app_token.outputs.token }}
2028
branch_name: backport/backport-${{ github.event.number }}

0 commit comments

Comments
 (0)