Fixes to action/workflow
All checks were successful
All checks were successful
This commit is contained in:
parent
3471e70c66
commit
43a287b307
1 changed files with 5 additions and 5 deletions
|
@ -40,7 +40,7 @@ jobs:
|
||||||
"https://git.seodisparate.com/api/v1/repos/stephenseo/break_interval/releases/tags/${GITHUB_REF_NAME}" \
|
"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
|
-H 'accept: application/json' -o "${THE_ACTION_WORKING_DIRECTORY}/release_info.json" 2>/dev/null
|
||||||
BUILD_ASSET_EXISTS=0
|
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
|
if [[ "$asset" == "$BUILD_ASSET_NAME" ]]; then
|
||||||
BUILD_ASSET_EXISTS=1
|
BUILD_ASSET_EXISTS=1
|
||||||
break
|
break
|
||||||
|
@ -92,7 +92,7 @@ jobs:
|
||||||
"https://git.seodisparate.com/api/v1/repos/stephenseo/break_interval/releases/tags/${GITHUB_REF_NAME}" \
|
"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
|
-H 'accept: application/json' -o "${THE_ACTION_WORKING_DIRECTORY}/release_info.json" 2>/dev/null
|
||||||
BUILD_ASSET_EXISTS=0
|
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
|
if [[ "$asset" == "$BUILD_ASSET_NAME" ]]; then
|
||||||
BUILD_ASSET_EXISTS=1
|
BUILD_ASSET_EXISTS=1
|
||||||
break
|
break
|
||||||
|
@ -135,12 +135,12 @@ jobs:
|
||||||
group: push-build-group
|
group: push-build-group
|
||||||
runs-on: docker_debian_bookworm
|
runs-on: docker_debian_bookworm
|
||||||
env:
|
env:
|
||||||
BUILD_ASSET_NAME: "break_interval_x86_64_debian_${{ GITHUB_REF_NAME }}.zstd"
|
BUILD_ASSET_NAME: "break_interval_x86_64_debian_${{ github.ref_name }}.zstd"
|
||||||
steps:
|
steps:
|
||||||
- name: Update and upgrade with apt
|
- name: Update and upgrade with apt
|
||||||
run: apt-get --yes update && apt-get --yes upgrade
|
run: apt-get --yes update && apt-get --yes upgrade
|
||||||
- name: Get necessary packages
|
- 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
|
- name: Get release info
|
||||||
run: |
|
run: |
|
||||||
curl -X GET \
|
curl -X GET \
|
||||||
|
@ -148,7 +148,7 @@ jobs:
|
||||||
-H 'accept: application/json' -o release_info.json
|
-H 'accept: application/json' -o release_info.json
|
||||||
- name: Check if asset exists
|
- name: Check if asset exists
|
||||||
run: |
|
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
|
if [[ "$asset" == "$BUILD_ASSET_NAME" ]]; then
|
||||||
touch asset_exists
|
touch asset_exists
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue