Skip to content

Commit 41ede0a

Browse files
committed
Fix download URL
1 parent 911623d commit 41ede0a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

action.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ runs:
1414
env:
1515
github_token: ${{ inputs.github-token }}
1616
run: |
17-
set -e
17+
set -ex
1818
VERSION="${{ inputs.version }}"
1919
if [ -n "${{ inputs.version-file }}" ]; then
2020
VERSION="v$(cat ${{ inputs.version-file }})"
@@ -24,9 +24,9 @@ runs:
2424
api_request_args=("${api_request_args[@]}" -H "authorization: token $github_token")
2525
fi
2626
if [ "${VERSION}" = "latest" ]; then
27-
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."))')
27+
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."))')
2828
else
29-
DOWNLOAD_URL=https://github.com/kyoshidajp/dep-doctor/releases/download/${VERSION}/dep-doctor_Linux_arm64.tar.gz
29+
DOWNLOAD_URL=https://github.com/kyoshidajp/dep-doctor/releases/download/${VERSION}/dep-doctor_Linux_x86_64.tar.gz
3030
fi
3131
mkdir -p ${RUNNER_TOOL_CACHE}/dep-doctor
3232
cd /tmp

0 commit comments

Comments
 (0)