From 9481ee85133fbfc076e43db297948c597c88d7ec Mon Sep 17 00:00:00 2001 From: Kyle Harding Date: Fri, 12 Apr 2024 12:35:51 -0400 Subject: [PATCH] Fix balena binary path Change-type: patch Signed-off-by: Kyle Harding --- .github/actions/test/action.yml | 5 +++++ action.yml | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/actions/test/action.yml b/.github/actions/test/action.yml index da5ece9..433fbbd 100644 --- a/.github/actions/test/action.yml +++ b/.github/actions/test/action.yml @@ -20,3 +20,8 @@ runs: with: cli-version: latest balena-token: ${{ fromJSON(inputs.secrets).BALENA_API_KEY }} + - name: Print balena CLI version + shell: bash + run: | + which balena + balena version diff --git a/action.yml b/action.yml index f417866..24ae5bf 100644 --- a/action.yml +++ b/action.yml @@ -58,6 +58,7 @@ runs: ARCH: ${{ steps.check_arch.outputs.slug }} VERSION: ${{ steps.check_version.outputs.slug }} run: | + set -x curl -fsSL "https://github.com/balena-io/balena-cli/releases/download/${VERSION}/balena-cli-${VERSION}-${OS}-${ARCH}-standalone.zip" -o "${{ runner.temp }}/balena-cli.zip" - name: Unpack balena CLI @@ -66,7 +67,7 @@ runs: GITHUB_ACTION_PATH: ${{ github.action_path }} run: | unzip "${{ runner.temp }}/balena-cli.zip" -d "${GITHUB_ACTION_PATH}" - echo "${GITHUB_ACTION_PATH}/balena-cli" >> $GITHUB_PATH + echo "${GITHUB_ACTION_PATH}/balena-cli" >> "${GITHUB_PATH}" - name: Print balena CLI version shell: bash