From cd024c737f43a6c792129b78d46b909df7691a1f Mon Sep 17 00:00:00 2001 From: amass <168062547@qq.com> Date: Tue, 2 Jul 2024 01:06:42 +0800 Subject: [PATCH] gdfg --- .gitea/workflows/release.yaml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index db5809c..2295c50 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -18,11 +18,10 @@ jobs: - name: Generate Changelog run: | set -eux - echo "gdgd" - git log v0.0.15..v0.0.16 --reverse --pretty=format:"%B" - git log $(git describe --tags --abbrev=0 $(git rev-list --tags --skip=1 --max-count=1))..$(git describe --tags --abbrev=0) --reverse --pretty=format:\"%B\" | xargs echo - git log $(git describe --tags --abbrev=0 $(git rev-list --tags --skip=1 --max-count=1))..$(git describe --tags --abbrev=0) --reverse --pretty=format:"%B" | nl -w2 -s". " | xargs echo - git log $(git describe --tags --abbrev=0 $(git rev-list --tags --skip=1 --max-count=1))..$(git describe --tags --abbrev=0) --reverse --pretty=format:"%B" | nl -w2 -s". " > ${{ github.workspace }}-CHANGELOG.txt + current_tag=$(git describe --tags --abbrev=0) + previous_tag=$(git describe --tags --abbrev=0 ${current_tag}^) + echo "Commits from ${previous_tag} to ${current_tag}:" + git log ${previous_tag}..${current_tag} --reverse --pretty=format:"%s" | nl -w2 -s". " | xargs echo - name: Upload Gitea Release uses: akkuman/gitea-release-action@v1 with: