From 58e3b0bfda800abdf99d91ea27d65898d2649e0e Mon Sep 17 00:00:00 2001 From: amass <168062547@qq.com> Date: Tue, 2 Jul 2024 00:03:30 +0800 Subject: [PATCH] correct changelog output. --- .gitea/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index bff96fc..0c8dd76 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -29,7 +29,7 @@ jobs: - name: Generate Changelog run: | current_tag=$(git describe --tags --abbrev=0) - previous_tag=$(git describe --tags --abbrev=0 ${current_tag}^) + previous_tag=$(git describe --tags --abbrev=0 $(git rev-list --tags --skip=1 --max-count=1)) git log ${previous_tag}..${current_tag} --reverse --pretty=format:"%s" | nl -w2 -s". " > ${{ github.workspace }}-CHANGELOG.txt - name: Upload Gitea Release uses: akkuman/gitea-release-action@v1