Skip to content

Commit 0eac455

Browse files
authored
Merge pull request #150 from PolicyEngine/fix/versioning-app-token
fix: Use GitHub App token in versioning so releases are created
2 parents 94b7f7e + 532eab3 commit 0eac455

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/versioning.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,17 @@ jobs:
1919
if: github.event.head_commit.message != 'Update package version'
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 repo
2330
uses: actions/checkout@v4
2431
with:
25-
token: ${{ secrets.GITHUB_TOKEN }}
32+
token: ${{ steps.app-token.outputs.token }}
2633

2734
- name: Install uv
2835
uses: astral-sh/setup-uv@v5

changelog.d/149.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Versioning workflow now creates GitHub Releases by using App token to trigger Phase 2.

0 commit comments

Comments
 (0)