Fixes to action/workflow
Some checks failed
Build for Releases / ensure-release-exists (push) Successful in 0s
Build for Releases / push-build-x86_64 (push) Successful in 5s
Build for Releases / push-build-aarch64 (push) Successful in 25s
Build for Releases / push-build-x86_64_debian (push) Failing after 24s

This commit is contained in:
Stephen Seo 2024-06-22 22:13:51 +09:00
parent 3471e70c66
commit 83f2faf528

View file

@ -40,7 +40,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' < "${THE_ACTION_WORKING_DIRECTORY}/release_info.json"); do
for asset in $(jq '.assets.[].name' < "${THE_ACTION_WORKING_DIRECTORY}/release_info.json" | tr -d '"'); do
if [[ "$asset" == "$BUILD_ASSET_NAME" ]]; then
BUILD_ASSET_EXISTS=1
break
@ -92,7 +92,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' < "${THE_ACTION_WORKING_DIRECTORY}/release_info.json"); do
for asset in $(jq '.assets.[].name' < "${THE_ACTION_WORKING_DIRECTORY}/release_info.json" | tr -d '"'); do
if [[ "$asset" == "$BUILD_ASSET_NAME" ]]; then
BUILD_ASSET_EXISTS=1
break
@ -140,7 +140,7 @@ jobs:
- name: Update and upgrade with apt
run: apt-get --yes update && apt-get --yes upgrade
- name: Get necessary packages
run: apt-get --yes install gcc jq curl cmake make zstd sed
run: apt-get --yes install gcc g++ jq curl cmake make zstd sed git
- name: Get release info
run: |
curl -X GET \
@ -148,7 +148,7 @@ jobs:
-H 'accept: application/json' -o release_info.json
- name: Check if asset exists
run: |
for asset in $(jq '.assets[].name' < release_info.json); do
for asset in $(jq '.assets[].name' < release_info.json | tr -d '"'); do
if [[ "$asset" == "$BUILD_ASSET_NAME" ]]; then
touch asset_exists
fi