From ac52fef5f91b3d630d66d2d3baa3db4ce4415331 Mon Sep 17 00:00:00 2001 From: Alexandre Leblanc Date: Wed, 20 Nov 2024 14:59:52 +0900 Subject: [PATCH] update: Update release.yml workflow --- .github/workflows/release.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index afa2de0..6b480a3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -94,6 +94,8 @@ jobs: needs: [windows, ubuntu, macos] steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Get the release version from the tag shell: bash run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV @@ -135,6 +137,7 @@ jobs: l256=$(sha256sum qt-ts-tools-linux-${{ env.VERSION }}-x86.tar.gz) m256=$(sha256sum qt-ts-tools-macos-${{ env.VERSION }}-aarch64.tar.gz) + git fetch -a previous_tag=$(git describe --abbrev=0 --tags ${{ env.VERSION }}^) changes="$(cat CHANGELOG.md | awk '/^## /{block++} {if (block==1) {print}}')" echo "$changes" > CHANGES.md