ci: Use token from GitHub App in auto-update workflow
This commit is contained in:
parent
5ffa296608
commit
233c4e0b8c
|
@ -82,10 +82,19 @@ jobs:
|
||||||
echo '::set-output name=has_changes::true'
|
echo '::set-output name=has_changes::true'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
- name: Impersonate update bot
|
||||||
|
uses: tibdex/github-app-token@v1
|
||||||
|
id: generate-token
|
||||||
|
if: steps.update-files.outputs.has_changes
|
||||||
|
with:
|
||||||
|
app_id: ${{ secrets.APP_ID }}
|
||||||
|
private_key: ${{ secrets.APP_PRIVATE_KEY }}
|
||||||
|
|
||||||
- name: Send pull request to update to new version
|
- name: Send pull request to update to new version
|
||||||
if: steps.update-files.outputs.has_changes
|
if: steps.update-files.outputs.has_changes
|
||||||
uses: peter-evans/create-pull-request@v3
|
uses: peter-evans/create-pull-request@v3
|
||||||
with:
|
with:
|
||||||
|
token: ${{ steps.generate-token.outputs.token }}
|
||||||
branch: update/${{ matrix.branch }}
|
branch: update/${{ matrix.branch }}
|
||||||
commit-message: Update to v${{ fromJson(steps.get-latest-release.outputs.result).version }}
|
commit-message: Update to v${{ fromJson(steps.get-latest-release.outputs.result).version }}
|
||||||
title: Update to v${{ fromJson(steps.get-latest-release.outputs.result).version }}
|
title: Update to v${{ fromJson(steps.get-latest-release.outputs.result).version }}
|
||||||
|
|
Loading…
Reference in New Issue