parent
5df98fb942
commit
df52c817a8
|
|
@ -337,17 +337,17 @@ jobs:
|
|||
id: create_release
|
||||
run: |
|
||||
response=$(curl -s -X POST "${GITEA_API_URL}/repos/${GITEA_USER1}/${GITEA_REPO1}/releases" \
|
||||
-H "Authorization: token ${{ secrets.MY_APP_TOKEN }}" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d @- <<EOF
|
||||
{
|
||||
-H "Authorization: token ${{ secrets.MY_APP_TOKEN }}" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d @- <<EOF
|
||||
{
|
||||
"tag_name": "${{ env.TAG_NAME }}",
|
||||
"name": "Release ${{ env.TAG_NAME }}",
|
||||
"body": "This release was created automatically by GitHub Actions.",
|
||||
"draft": false,
|
||||
"prerelease": false
|
||||
}
|
||||
EOF
|
||||
}
|
||||
EOF
|
||||
)
|
||||
|
||||
echo "$response" | tee gitea-release-response.json
|
||||
|
|
|
|||
Loading…
Reference in New Issue