Skip to content

Commit

Permalink
debug release asset
Browse files Browse the repository at this point in the history
  • Loading branch information
ab77 committed May 27, 2024
1 parent 4bb687e commit 3b75b43
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/balena-tests/balena.sh
Original file line number Diff line number Diff line change
Expand Up @@ -262,13 +262,13 @@ function upload_release_asset() {
local release_id
release_id=${1:-1}

curl --silent --retry "${ATTEMPTS}" --fail "https://api.${DNS_TLD}/resin/release_asset" \
response="$(curl --silent --retry "${ATTEMPTS}" --fail "https://api.${DNS_TLD}/resin/release_asset" \
--header "Authorization: Bearer $(cat <~/.balena/token)" \
--form 'asset=@logo.png' \
--form "release=${release_id}" \
--form "asset_key=logo-$((RANDOM)).png" \
| jq -re .asset.href \
| xargs curl --retry "${ATTEMPTS}" -sfivo "/tmp/logo-$((RANDOM)).png"
--form "asset_key=logo-$((RANDOM)).png")" && echo "${response}" | jq -re

echo "${response}" | jq -re .asset.href | xargs curl --retry "${ATTEMPTS}" -sfivo "/tmp/logo-$((RANDOM)).png"
}

# --- main
Expand Down

0 comments on commit 3b75b43

Please sign in to comment.