Update .forgejo/workflows/release.yml
All checks were successful
Release / release (push) Successful in 3m30s

This commit is contained in:
root 2025-06-25 15:53:04 +01:00
parent 73c203502c
commit a27d2b6991

View file

@ -145,20 +145,15 @@ jobs:
REPO="root/resilient" REPO="root/resilient"
# Create release # Create release
RESPONSE=$(curl -s -X POST "$FORGEJO_API/repos/$OWNER/$REPO/releases" \ RESPONSE=$(curl -s -X POST "$API/repos/$REPO/releases" \
-H "Authorization: token $TOKEN" \ -H "Authorization: token ${{ secrets.FORGEJO_TOKEN }}" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-d @- <<EOF -d "{
{ \"tag_name\": \"v$VERSION\",
"tag_name": "v$VERSION", \"target_commitish\": \"master\",
"target_commitish": "master", \"name\": \"Release v$VERSION\",
"name": "Release v$VERSION", \"body\": $(jq -Rs < release-notes.md)
"body": $(jq -Rs < release-notes.md), }")
"draft": false,
"prerelease": false
}
EOF
)
RELEASE_ID=$(echo "$RESPONSE" | jq -r '.id') RELEASE_ID=$(echo "$RESPONSE" | jq -r '.id')
echo "Created release ID: $RELEASE_ID" echo "Created release ID: $RELEASE_ID"