Skip to content

Commit d3302ea

Browse files
Add GitHub App token retrieval step to workflow
1 parent f91943b commit d3302ea

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/sync-branches.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,15 @@ jobs:
1515

1616
steps:
1717
- uses: actions/checkout@v5
18+
- name: Get PAT for app
19+
uses: actions/create-github-app-token@v2
20+
id: app-token
21+
with:
22+
app-id: ${{ secrets.APP_ID }}
23+
private-key: ${{ secrets.APP_SECRET }}
1824
- name: Push changes
1925
uses: ad-m/github-push-action@master
2026
with:
27+
github_token: ${{ steps.app-token.outputs.token }}
2128
branch: main
2229
force: true

0 commit comments

Comments
 (0)