Attempt fix workflow
All checks were successful
Build for Releases / ensure-release-exists (push) Successful in 0s
Build for Releases / ensure-releases-exists-and-push-build-aarch64 (push) Successful in 7s
Build for Releases / ensure-releases-exists-and-push-build-x86_64 (push) Successful in 5s

This commit is contained in:
Stephen Seo 2024-06-14 21:15:07 +09:00
parent b40470f43f
commit ff0f4f4ee1

View file

@ -14,7 +14,7 @@ jobs:
curl -X GET "https://git.seodisparate.com/api/v1/repos/stephenseo/break_interval/releases/tags/$GITHUB_REF_NAME" \ curl -X GET "https://git.seodisparate.com/api/v1/repos/stephenseo/break_interval/releases/tags/$GITHUB_REF_NAME" \
-H "Authorization: token ${GITHUB_TOKEN}" \ -H "Authorization: token ${GITHUB_TOKEN}" \
-H 'accept: application/json' -o "${THE_ACTION_WORKING_DIRECTORY}/release_${GITHUB_REF_NAME}_check.json" \ -H 'accept: application/json' -o "${THE_ACTION_WORKING_DIRECTORY}/release_${GITHUB_REF_NAME}_check.json" \
-w '%{http_code}' > release_${GITHUB_REF_NAME}_check_code -w '%{http_code}' 2>/dev/null > release_${GITHUB_REF_NAME}_check_code
if [[ "404" == "$(cat release_${GITHUB_REF_NAME}_check_code)" ]]; then if [[ "404" == "$(cat release_${GITHUB_REF_NAME}_check_code)" ]]; then
curl --fail-with-body -X POST \ curl --fail-with-body -X POST \
"https://git.seodisparate.com/api/v1/repos/stephenseo/break_interval/releases" \ "https://git.seodisparate.com/api/v1/repos/stephenseo/break_interval/releases" \
@ -23,7 +23,7 @@ jobs:
-H 'Content-Type: application/json' \ -H 'Content-Type: application/json' \
-d "{ -d "{
\"name\": \"break_interval version ${GITHUB_REF_NAME}\", \"name\": \"break_interval version ${GITHUB_REF_NAME}\",
\"tag_name\": \"${GITHUB_REF_NAME}\" }" > "${THE_ACTION_WORKING_DIRECTORY}/release_${GITHUB_REF_NAME}_create.json" && \ \"tag_name\": \"${GITHUB_REF_NAME}\" }" 2>/dev/null > "${THE_ACTION_WORKING_DIRECTORY}/release_${GITHUB_REF_NAME}_create.json"
fi fi
ensure-releases-exists-and-push-build-x86_64: ensure-releases-exists-and-push-build-x86_64: