From 0060c51c1248eb7d45b39cc3214f2888a629d7d8 Mon Sep 17 00:00:00 2001 From: Abdelrahman Date: Sun, 30 Aug 2026 14:31:02 +0100 Subject: [PATCH] Only extract changelog for new releases --- .gitea/workflows/release.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 671d4a3..a0099f1 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -35,9 +35,10 @@ jobs: echo "version=$VERSION" >> $GITHUB_OUTPUT - name: Extract version changelog + if: steps.tag.outputs.version id: changelog run: | - VERSION=$(cat VERSION | tr -d '[:space:]') # read version and trim whitespace + VERSION="${{ steps.tag.outputs.version }}" CHANGELOG_FILE=$(python3 scripts/get_changelog.py $VERSION) if [[ $? != 0 ]]; then @@ -91,4 +92,7 @@ jobs: - name: Cleanup if: steps.tag.outputs.version - run: rm -rf dist/* + run: | + CHANGELOG_FILE="${{ steps.changelog.outputs.changelog_file }}" + rm -rf dist/* + rm -f "$CHANGELOG_FILE"