Skip to content

Commit 06e1c73

Browse files
authored
ci(backport): fix backport PR not running workflow (#2601)
## Description should fix backport PR's not triggering CI workflow ## What type of PR is this? (check all applicable) - [ ] Bug Fix - [ ] Feature - [ ] Refactor - [ ] Deprecation - [ ] Breaking Change - [ ] Documentation Update - [ ] CI ## Checklist - [ ] I have made corresponding changes to the documentation (`docs/`) - [ ] I have made corresponding changes to the changelog (`CHANGELOG.md`)
1 parent ca4ca49 commit 06e1c73

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/backport.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,17 @@ jobs:
2525
&& github.event.pull_request.merged
2626
)
2727
steps:
28+
- uses: actions/create-github-app-token@v2
29+
id: generate-token
30+
with:
31+
app-id: ${{ secrets.BACKPORT_APP_ID }}
32+
private-key: ${{ secrets.BACKPORT_APP_PRIVATE_KEY }}
2833
- uses: actions/checkout@v4
2934
- name: Create backport pull requests
3035
uses: korthout/backport-action@v3
3136
with:
37+
# Token to authenticate requests to GitHub, ensures that created PRs run CI
38+
github_token: ${{ steps.generate-token.outputs.token }}
3239
branch_name: backport-#${pull_number}-to-${target_branch}
3340
pull_description: |
3441
### This is an automated backport of #${pull_number} to branch `${target_branch}`.

0 commit comments

Comments
 (0)