Skip to content

Commit f1b3ca9

Browse files
anth-volkclaude
andcommitted
fix: Use GitHub App token in auto-updater so PRs trigger CI
PRs created with GITHUB_TOKEN don't trigger pull_request workflows. Switch to the org-level GitHub App token so test.yml runs on auto-update PRs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 47988a1 commit f1b3ca9

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/update-country-packages.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ jobs:
1919
fail-fast: false
2020

2121
steps:
22+
- name: Generate GitHub App token
23+
id: app-token
24+
uses: actions/create-github-app-token@v1
25+
with:
26+
app-id: ${{ secrets.APP_ID }}
27+
private-key: ${{ secrets.APP_PRIVATE_KEY }}
28+
2229
- name: Checkout code
2330
uses: actions/checkout@v4
2431

@@ -30,7 +37,7 @@ jobs:
3037

3138
- name: Check for update and open PR
3239
env:
33-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
GH_TOKEN: ${{ steps.app-token.outputs.token }}
3441
run: |
3542
chmod +x .github/scripts/update-package.sh
3643
.github/scripts/update-package.sh ${{ matrix.package }}

0 commit comments

Comments
 (0)