3
0

gitea actions ng20

This commit is contained in:
Michael Otto
2026-03-17 14:59:09 +01:00
parent 14e6ec381d
commit 24b3b75837

View File

@@ -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 }}