colligendis v.0.4 #6
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update changelog for release | |
on: | |
release: | |
types: [ created ] | |
permissions: | |
contents: write | |
jobs: | |
update-release-changelog: | |
if: startsWith(github.ref, 'refs/tags/v') | |
name: Generate changelog | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # To use `git describe --tags` | |
- name: Setup Task | |
uses: arduino/setup-task@v2 | |
- name: Generate changelog | |
uses: orhun/git-cliff-action@v3 | |
with: | |
config: cliff.toml | |
args: --verbose | |
env: | |
OUTPUT: CHANGELOG.md | |
- name: Commit Changelog | |
run : | | |
git config --global user.name 'github-actions' | |
git config --global user.email '[email protected]' | |
git add CHANGELOG.md | |
git commit -m "Update CHANGELOG.md" | |
git push https://github.com/${{ github.repository }}.git HEAD:main |