Skip to content

Commit

Permalink
fix(github): upload git-cliff changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
engeir committed Dec 11, 2023
1 parent 39b899b commit 91a9a0a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches:
- main
- master

jobs:
changelog:
Expand All @@ -28,6 +27,15 @@ jobs:
- name: Print the changelog
run: cat "${{ steps.git-cliff.outputs.changelog }}"

- name: Commit
run: |
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
set +e
git add CHANGELOG.md
git commit -m "Update changelog"
git push https://${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git main
release:
name: Release
runs-on: ubuntu-latest
Expand Down

0 comments on commit 91a9a0a

Please sign in to comment.