Skip to content

Commit

Permalink
ci: use dedicated app for changelog (#451)
Browse files Browse the repository at this point in the history
  • Loading branch information
nimdanitro authored Oct 2, 2024
1 parent e65d173 commit 4864691
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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]"
Expand Down

0 comments on commit 4864691

Please sign in to comment.