Release #16
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: Release | |
on: | |
push: | |
tags: | |
- "v*.*.*" | |
permissions: | |
contents: write | |
jobs: | |
generate-changelog: | |
name: Generate changelog | |
runs-on: ubuntu-22.04 | |
outputs: | |
release_body: ${{ steps.git-cliff.outputs.content }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Generate a latest changelog | |
uses: orhun/git-cliff-action@v3 | |
id: git-cliff | |
with: | |
config: cliff.toml | |
args: --verbose --latest | |
- name: Push the changelog into release | |
uses: softprops/action-gh-release@v2 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
body: ${{ steps.git-cliff.outputs.content }} | |
- name: Generate a latest changelog | |
uses: orhun/git-cliff-action@v3 | |
id: git-cliff-full | |
with: | |
config: cliff.toml | |
args: --verbose | |
- name: Push new changelog | |
run: | | |
git checkout develop | |
echo '${{ steps.git-cliff-full.outputs.content }}' > CHANGELOG.md | |
git config --global user.name "Mirio" | |
git config --global user.email "[email protected]" | |
git add CHANGELOG.md | |
git commit -m "Adding full changelog" | |
git push |