chore: switch to gh apps user (#92)

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
This commit is contained in:
Michele Dolfi 2024-09-20 17:02:27 +02:00 committed by GitHub
parent 6dd1e91c4a
commit 1f4b224ab6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -47,14 +47,19 @@ jobs:
runs-on: ubuntu-latest
concurrency: release
steps:
- uses: actions/checkout@v3
- uses: actions/create-github-app-token@v1
id: app-token
with:
token: ${{ secrets.GH_PAT }}
app-id: ${{ vars.CI_APP_ID }}
private-key: ${{ secrets.CI_PRIVATE_KEY }}
- uses: actions/checkout@v4
with:
token: ${{ steps.app-token.outputs.token }}
fetch-depth: 0 # for fetching tags, required for semantic-release
- uses: ./.github/actions/setup-poetry
- name: Run release script
env:
GH_TOKEN: ${{ secrets.GH_PAT }}
GH_TOKEN: ${{ steps.app-token.outputs.token }}
TARGET_VERSION: ${{ needs.pre-release-check.outputs.TARGET_TAG_V }}
CHGLOG_FILE: CHANGELOG.md
run: ./.github/scripts/release.sh