Skip to content

Release

Release #5

Workflow file for this run

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

View workflow run for this annotation

GitHub Actions / Release

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 40, Col: 13): The identifier 'git-cliff' may not be used more than once within the same scope.
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