From 96fedd70ab11f066c337fbc54167192be9602b2d Mon Sep 17 00:00:00 2001 From: Michael Otto Date: Wed, 18 Mar 2026 07:39:06 +0100 Subject: [PATCH] gitea actions ng33 --- .gitea/workflows/release.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 1bf237a..0b468b0 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -227,7 +227,7 @@ jobs: { echo "---" - echo "Version $VERSION" + echo "Version $VERSION:" cat "$FILE" } > "$TMP_FILE" @@ -250,10 +250,20 @@ jobs: git config user.name "release-bot" git config user.email "ci@example.local" + if git rev-parse "v$VERSION" >/dev/null 2>&1; then + echo "Lösche alten lokalen Tag v$VERSION" + git tag -d "v$VERSION" + echo "Lösche alten Remote-Tag v$VERSION" + git -c http.extraheader="AUTHORIZATION: bearer $RELEASE_TOKEN" \ + push origin :refs/tags/"v$VERSION" + fi + git add metadata.txt changelog.txt git commit -m "Release $VERSION" git -c http.extraheader="AUTHORIZATION: bearer $RELEASE_TOKEN" push origin HEAD:"$CHANNEL" + + env: CHANNEL: ${{ steps.daten.outputs.channel }} VERSION: ${{ steps.daten.outputs.version }}