From dcb1f39ff14cc2c483efa0e634e0681bf083b5b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elisi=C3=A1rio=20Couto?= Date: Mon, 22 Sep 2025 23:12:00 +0100 Subject: [PATCH] Use git-cliff action. --- .github/workflows/release.yml | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 38e3e11..4b6e638 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -144,23 +144,20 @@ jobs: with: fetch-depth: 0 - - name: Install git-cliff - run: | - wget -qO- https://github.com/orhun/git-cliff/releases/latest/download/git-cliff-2.10.0-x86_64-unknown-linux-gnu.tar.gz | tar xz - sudo mv git-cliff-*/git-cliff /usr/local/bin/ - - name: Generate release notes + uses: orhun/git-cliff-action@v4 id: release_notes - run: | - echo "notes<> $GITHUB_OUTPUT - git-cliff --current >> $GITHUB_OUTPUT - echo "EOF" >> $GITHUB_OUTPUT + with: + config: cliff.toml + args: --current + env: + GITHUB_REPO: ${{ github.repository }} - name: Create Release uses: softprops/action-gh-release@v2 with: tag_name: ${{ github.ref_name }} name: Release ${{ github.ref_name }} - body: ${{ steps.release_notes.outputs.notes }} + body: ${{ steps.release_notes.outputs.content }} draft: false prerelease: false