Always fetch release info to ensure release ID is available
All checks were successful
OSCW Runner Container Build / OSCW-Runner-Container (push) Successful in 18m48s
All checks were successful
OSCW Runner Container Build / OSCW-Runner-Container (push) Successful in 18m48s
This commit is contained in:
parent
9c57523a50
commit
3721a46688
@ -20,7 +20,8 @@ RESULT=$(curl --user "${GITHUB_USERNAME}:${GITHUB_TOKEN}" -X POST https://api.gi
|
|||||||
\"prerelease\": false
|
\"prerelease\": false
|
||||||
}")
|
}")
|
||||||
|
|
||||||
echo "Create release result: ${RESULT}"
|
echo "Getting new GitHub release '${CI_COMMIT_TAG}'"
|
||||||
|
RESULT=$(curl --user "${GITHUB_USERNAME}:${GITHUB_TOKEN}" https://api.github.com/repos/${CI_REPO}/releases/tags/${CI_COMMIT_TAG})
|
||||||
RELEASE_ID=$(echo "${RESULT}" | python -c 'import json,sys;print(json.load(sys.stdin)["id"])')
|
RELEASE_ID=$(echo "${RESULT}" | python -c 'import json,sys;print(json.load(sys.stdin)["id"])')
|
||||||
|
|
||||||
echo "Publishing artifact: ${ASSET_NAME}"
|
echo "Publishing artifact: ${ASSET_NAME}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user