Skip to content

Commit 7674345

Browse files
authored
Merge pull request #145 from PolicyEngine/fix/auto-updater-app-token
fix: Use GitHub App token in auto-updater so PRs trigger CI
2 parents 47988a1 + 7785795 commit 7674345

2 files changed

Lines changed: 9 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 }}

changelog.d/144.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Use GitHub App token in country package auto-updater so PRs trigger CI tests.

0 commit comments

Comments
 (0)