From 8d4ab652a207ee14e4ea992bddbf60e140f8e08c Mon Sep 17 00:00:00 2001 From: Michael Otto Date: Wed, 18 Mar 2026 13:35:26 +0100 Subject: [PATCH] gitea actions ng38 --- .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 068cb35..1f60108 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -162,11 +162,11 @@ jobs: API_URL="https://${{ vars.RELEASE_URL }}/api/v1/repos/${PLUGIN_GROUP}/${PLUGIN_NAME}/releases" JSON=$(jq -n \ - --arg tag "$TAG" \ + --arg tag_name "Version $VERSION-$CHANNEL" \ --arg name "Version $VERSION-$CHANNEL" \ --arg body "$BODY" \ --argjson prerelease "$PRERELEASE" \ - '{tag_name: $tag, name: $name, body: $body, prerelease: $prerelease}') + '{tag_name: $tag_name, name: $name, body: $body, prerelease: $prerelease}') API_RESPONSE=$(curl -s -X POST "$API_URL" \ -H "accept: application/json" \ @@ -257,14 +257,13 @@ jobs: echo "Lösche alten lokalen Tag $TAG" git tag -d "$TAG" echo "Lösche alten Remote-Tag $TAG" - git -c http.extraheader="AUTHORIZATION: bearer $RELEASE_TOKEN" \ - push origin :refs/tags/"$TAG" + git -c http.extraheader="AUTHORIZATION: bearer $RELEASE_TOKEN" push origin :refs/tags/"$TAG" else echo "Tag $TAG nicht vorhanden" fi git add metadata.txt changelog.txt - git commit -m "Release $VERSION" + git commit -m "Release $VERSION-$CHANNEL" git -c http.extraheader="AUTHORIZATION: bearer $RELEASE_TOKEN" push origin HEAD:"$CHANNEL"