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