From 6665809f339aea7d28ee142858df7ca123ea8f0f Mon Sep 17 00:00:00 2001 From: Daniel Aschwanden Date: Wed, 2 Oct 2024 22:57:22 +0200 Subject: [PATCH] ci: use dedicated app for changelog --- .github/workflows/changelog.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/changelog.yaml b/.github/workflows/changelog.yaml index 786b1326..bfe5986d 100644 --- a/.github/workflows/changelog.yaml +++ b/.github/workflows/changelog.yaml @@ -13,10 +13,16 @@ jobs: permissions: contents: write steps: + - uses: actions/create-github-app-token@v1 + id: app-token + with: + app-id: ${{ vars.CHANGELOG_APP_ID }} + private-key: ${{ secrets.CHANGELOG_APP_SECRET }} - name: Checkout uses: actions/checkout@v4 with: fetch-depth: 0 + token: ${{ steps.app-token.outputs.token }} - name: Generate changelog uses: orhun/git-cliff-action@v4 with: @@ -28,8 +34,8 @@ jobs: - name: Commit run: | git checkout ${GITHUB_REF_NAME} - git config user.name 'github-actions[bot]' - git config user.email 'github-actions[bot]@users.noreply.github.com' + git config user.name 'f-eld-ch-changelog[bot]' + git config user.email 'f-eld-ch-changelog[bot]@users.noreply.github.com' set +e git add CHANGELOG.md git commit -m "chore(changelog): Update changelog [skip ci]"