This commit is contained in:
parent
42976354a2
commit
61c83c137e
|
@ -49,9 +49,11 @@ jobs:
|
|||
}' \
|
||||
"${{ vars.GIT_URL }}/api/v1/repos/${{ gitea.repository }}/releases"
|
||||
|
||||
RELEASE_ID=$(curl -H "Authorization: token ${{ secrets.GIT_TOKEN }}" \
|
||||
RESPONSE=$(curl -H "Authorization: token ${{ secrets.GIT_TOKEN }}" \
|
||||
-H "Content-Type: application/json" \
|
||||
"${{ vars.GIT_URL }}/api/v1/repos/${{ gitea.repository }}/releases/tags/${{ gitea.ref }}" | jq -r '.id')
|
||||
"${{ vars.GIT_URL }}/api/v1/repos/${{ gitea.repository }}/releases/tags/${{ gitea.ref }}")
|
||||
echo "Response: $RESPONSE"
|
||||
RELEASE_ID=$(echo $RESPONSE | jq -r '.id')
|
||||
|
||||
curl -X POST -H "Authorization: token ${{ secrets.GIT_TOKEN }}" \
|
||||
-H "Content-Type: multipart/form-data" \
|
||||
|
|
Loading…
Reference in New Issue
Block a user