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,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"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue