From 90e1ca48f68ff8788758a8b6f13af09191826181 Mon Sep 17 00:00:00 2001 From: "Ola [AHLNET]" Date: Wed, 4 Sep 2024 14:42:24 +0200 Subject: [PATCH] Allow download of latest release, even if pre-release (#1816) --- .github/workflows/lint.yml | 4 ++-- scripts/cnode-helper-scripts/guild-deploy.sh | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index b4407f6f6..d9e400c27 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,8 +1,8 @@ name: SH Linter on: - push: - branches: [ '*' ] +# push: +# branches: [ '*' ] # branches: [ master,alpha ] pull_request: branches: [ '*' ] diff --git a/scripts/cnode-helper-scripts/guild-deploy.sh b/scripts/cnode-helper-scripts/guild-deploy.sh index 0bca8e02c..1c6860c2e 100755 --- a/scripts/cnode-helper-scripts/guild-deploy.sh +++ b/scripts/cnode-helper-scripts/guild-deploy.sh @@ -451,7 +451,8 @@ download_cardanohwcli() { rm -rf /tmp/chwcli-bin && mkdir -p /tmp/chwcli-bin pushd /tmp/chwcli-bin >/dev/null || err_exit rm -rf cardano-hw-cli* - vchc_asset_url="$(curl -s https://api.github.com/repos/vacuumlabs/cardano-hw-cli/releases/latest | jq -r '.assets[].browser_download_url' | grep '_linux-x64.tar.gz')" + #vchc_asset_url="$(curl -s https://api.github.com/repos/vacuumlabs/cardano-hw-cli/releases/latest | jq -r '.assets[].browser_download_url' | grep '_linux-x64.tar.gz')" + vchc_asset_url="$(curl -s https://api.github.com/repos/vacuumlabs/cardano-hw-cli/releases | jq -r '.[0].assets[].browser_download_url' | grep '_linux-x64.tar.gz')" if curl -sL -f -m ${CURL_TIMEOUT} -o cardano-hw-cli_linux-x64.tar.gz ${vchc_asset_url}; then tar zxf cardano-hw-cli_linux-x64.tar.gz &>/dev/null rm -f cardano-hw-cli_linux-x64.tar.gz