Release #5
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@v2 | ||
id: git-cliff | ||
with: | ||
config: cliff.toml | ||
args: --verbose --latest | ||
env: | ||
OUTPUT: CHANGELOG.md | ||
- name: Push the changelog into release | ||
uses: softprops/action-gh-release@v1 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
body: ${{ steps.git-cliff.outputs.content }} | ||
- name: Generate a full changelog | ||
uses: orhun/git-cliff-action@v2 | ||
id: git-cliff | ||
Check failure on line 40 in .github/workflows/release.yml GitHub Actions / ReleaseInvalid workflow file
|
||
with: | ||
config: cliff.toml | ||
args: --verbose --output CHANGELOG.md | ||
- name: Push new changelog | ||
run: | | ||
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}" | ||
git config --global user.email "[email protected]" | ||
git add CHANGELOG.md | ||
git commit -m "${{ env.CI_COMMIT_MESSAGE }}" | ||
git push |