Skip to content

Commit ddf709d

Browse files
committed
fix(release): use a personal access token in release-pr workflow to trigger CI (cloudnative-pg#10294)
PRs created by the release-pr workflow using GITHUB_TOKEN don't trigger CI workflows due to a GitHub Actions limitation. Switch to a personal access token so that CI runs automatically on release PRs. Closes cloudnative-pg#10293 Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com> (cherry picked from commit 5a7bc1e)
1 parent f173fe9 commit ddf709d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

.github/workflows/release-pr.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ on:
1212
jobs:
1313
pull-request:
1414
runs-on: ubuntu-24.04
15-
permissions:
16-
pull-requests: write
17-
contents: write
1815
steps:
1916
-
2017
name: Checkout
@@ -36,7 +33,7 @@ jobs:
3633
uses: repo-sync/pull-request@572331753c3787dee4a6c0b6719c889af9646b81 # v2.12
3734
with:
3835
destination_branch: ${{ env.DEST }}
39-
github_token: ${{ secrets.GITHUB_TOKEN }}
36+
github_token: ${{ secrets.GHA_PAT }}
4037
pr_body: "Automated PR. Will trigger the ${{ env.TAG }} release when approved."
4138
pr_label: release
4239
pr_title: "Version tag to ${{ env.TAG }}"

0 commit comments

Comments
 (0)