Update .forgejo/workflows/release.yml
All checks were successful
Release / release (push) Successful in 3m30s
All checks were successful
Release / release (push) Successful in 3m30s
This commit is contained in:
parent
73c203502c
commit
a27d2b6991
1 changed files with 9 additions and 14 deletions
|
@ -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"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue