Attempt fix workflow
Some checks failed
Build for Releases / ensure-release-exists (push) Failing after 2s
Build for Releases / ensure-releases-exists-and-push-build-x86_64 (push) Has been skipped
Build for Releases / ensure-releases-exists-and-push-build-aarch64 (push) Has been skipped

This commit is contained in:
Stephen Seo 2024-06-14 21:12:32 +09:00
parent 83f289a4d1
commit b40470f43f

View file

@ -38,7 +38,7 @@ jobs:
"https://git.seodisparate.com/api/v1/repos/stephenseo/break_interval/releases/tags/${GITHUB_REF_NAME}" \
-H 'accept: application/json' -o "${THE_ACTION_WORKING_DIRECTORY}/release_info.json" 2>/dev/null
BUILD_ASSET_EXISTS=0
for asset in $(jq '.assets.[].name'); do
for asset in $(jq '.assets.[].name' < "${THE_ACTION_WORKING_DIRECTORY}/release_info.json"); do
if [[ "$asset" == "$BUILD_ASSET_NAME" ]]; then
BUILD_ASSET_EXISTS=1
break
@ -75,7 +75,7 @@ jobs:
"https://git.seodisparate.com/api/v1/repos/stephenseo/break_interval/releases/tags/${GITHUB_REF_NAME}" \
-H 'accept: application/json' -o "${THE_ACTION_WORKING_DIRECTORY}/release_info.json" 2>/dev/null
BUILD_ASSET_EXISTS=0
for asset in $(jq '.assets.[].name'); do
for asset in $(jq '.assets.[].name' < "${THE_ACTION_WORKING_DIRECTORY}/release_info.json"); do
if [[ "$asset" == "$BUILD_ASSET_NAME" ]]; then
BUILD_ASSET_EXISTS=1
break