Skip to content

Commit c278979

Browse files
committed
fix: creating temporary app token for updater
1 parent 87fba9e commit c278979

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/update-actions.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,22 @@ jobs:
88
update-actions:
99
runs-on: ubuntu-latest
1010
steps:
11-
- name: Checkout repository
12-
uses: actions/checkout@v4
11+
- name: Create temporary GitHub App Token
12+
id: app
13+
uses: actions/create-github-app-token@v1
14+
with:
15+
app-id: ${{ vars.HOUSEKEEPING_BOT_APP_ID }}
16+
private-key: ${{ secrets.HOUSEKEEPING_BOT_PRIVATE_KEY }}
17+
owner: ${{ github.repository_owner }}
1318

1419
- name: Update GitHub Actions
1520
uses: ./actions
1621
with:
17-
token: ${{ github.token }}
22+
token: ${{ steps.app.outputs.token }}
1823
base-branch: 'main'
1924
branch-prefix: 'update-actions'
2025
pr-title: 'Update GitHub Actions'
2126
commit-message: 'Update GitHub Actions'
2227
file-glob: '.github/**/*.yml'
2328
prefixes: 'actions'
29+
auto-merge: 'true'

0 commit comments

Comments
 (0)