diff --git a/action.yml b/action.yml index c792128..3e298cb 100644 --- a/action.yml +++ b/action.yml @@ -14,7 +14,7 @@ runs: env: github_token: ${{ inputs.github-token }} run: | - set -e + set -ex VERSION="${{ inputs.version }}" if [ -n "${{ inputs.version-file }}" ]; then VERSION="v$(cat ${{ inputs.version-file }})" @@ -24,9 +24,9 @@ runs: api_request_args=("${api_request_args[@]}" -H "authorization: token $github_token") fi if [ "${VERSION}" = "latest" ]; then - DOWNLOAD_URL=$(curl "${api_request_args[@]}" https://api.github.com/repos/kyoshidajp/dep-doctor/releases | jq -r '[.[]|select(.tag_name > "v0.2")][0].assets[].browser_download_url|select(match("Linux_arm64."))') + DOWNLOAD_URL=$(curl "${api_request_args[@]}" https://api.github.com/repos/kyoshidajp/dep-doctor/releases | jq -r '[.[]|select(.tag_name > "v0.2")][0].assets[].browser_download_url|select(match("Linux_x86_64."))') else - DOWNLOAD_URL=https://github.com/kyoshidajp/dep-doctor/releases/download/${VERSION}/dep-doctor_Linux_arm64.tar.gz + DOWNLOAD_URL=https://github.com/kyoshidajp/dep-doctor/releases/download/${VERSION}/dep-doctor_Linux_x86_64.tar.gz fi mkdir -p ${RUNNER_TOOL_CACHE}/dep-doctor cd /tmp