Skip to content

Commit

Permalink
test(cliff): Still trying to generate the changelog file...
Browse files Browse the repository at this point in the history
  • Loading branch information
DamChtlv authored May 7, 2024
1 parent b041b75 commit d6e34a0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/generate-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,16 @@ on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Allow action to write on repo
# https://stackoverflow.com/questions/73687176/permission-denied-to-github-actionsbot-the-requested-url-returned-error-403
permissions:
contents: write

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:

# https://github.com/orhun/git-cliff/blob/main/website/docs/github-actions/git-cliff-action.md
run-changelog-generator:
changelog:
name: Run Changelog Generator (git-cliff)
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -43,5 +48,5 @@ jobs:
git config user.email 'github-actions[bot]@users.noreply.github.com'
set +e
git add CHANGELOG.md
git commit -m "🤖 Regenerate changelog"
git commit -m "🤖 Auto regenerate changelog (git-cliff action)"
git push https://${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git main

0 comments on commit d6e34a0

Please sign in to comment.