From 41ede0ae6d560ab6496d30128d64e72f01060092 Mon Sep 17 00:00:00 2001 From: Katsuhiko YOSHIDA Date: Mon, 30 Oct 2023 22:08:20 +0900 Subject: [PATCH] Fix download URL --- action.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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