Skip to content

Commit 838780c

Browse files
authored
ci: generate github app token inside the same job (#598)
1 parent 307ce24 commit 838780c

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

.github/workflows/holiday-generator.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,7 @@ on:
77
workflow_dispatch:
88

99
jobs:
10-
token:
11-
uses: FossifyOrg/.github/.github/workflows/fossifybot-token.yml@main
12-
secrets: inherit
13-
1410
generate:
15-
needs: token
1611
name: Generate ICS
1712
runs-on: ubuntu-latest
1813
steps:
@@ -26,10 +21,17 @@ jobs:
2621
LOG_ENABLED: true
2722
working-directory: ./.github/workflows/holiday-generator
2823
run: "npm install && npm start"
24+
25+
- id: app-token
26+
uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e
27+
with:
28+
app-id: ${{ secrets.APP_ID }}
29+
private-key: ${{ secrets.APP_PRIVATE_KEY }}
30+
2931
- name: Create PR
3032
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e
3133
with:
32-
token: ${{ needs.token.outputs.token }}
34+
token: ${{ steps.app-token.outputs.token }}
3335
sign-commits: true
3436
commit-message: "chore: update holidays"
3537
title: "chore: update holidays"

0 commit comments

Comments
 (0)