From 24b3b7583750064419b7c4db0f2c7ea444036b08 Mon Sep 17 00:00:00 2001 From: Michael Otto Date: Tue, 17 Mar 2026 14:59:09 +0100 Subject: [PATCH] gitea actions ng20 --- .gitea/workflows/release.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index cce09a3..e10ed8a 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -165,7 +165,21 @@ jobs: --argjson prerelease "$PRERELEASE" \ '{tag_name: $tag, name: $name, body: $body, prerelease: $prerelease}') + API_RESPONSE=$(curl -s -X POST "$API_URL" \ + -H "accept: application/json" \ + -H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \ + -H "Content-Type: application/json" \ + -d "$JSON") + RELEASE_ID=$(echo "$API_RESPONSE" | jq -r '.id') + + if [ "$RELEASE_ID" = "null" ] || [ -z "$RELEASE_ID" ]; then + echo "Fehler beim Erstellen des Releases!" + echo "$API_RESPONSE" + exit 1 + fi + + echo "release_id=$RELEASE_ID" >> $GITHUB_OUTPUT env: PRERELEASE: ${{ steps.daten.outputs.prerelease }} BODY: ${{ steps.changelog.outputs.current }}