We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8c6791a + d632f4f commit 2a5f936Copy full SHA for 2a5f936
action.yml
@@ -32,13 +32,16 @@ runs:
32
esac
33
34
os=${{ runner.os }}
35
+ arch=$(echo "${{ runner.arch }}" | tr '[:upper:]' '[:lower:]')
36
if [[ $os == "macOS" ]]; then
37
os="Darwin"
38
fi
-
39
+ if [[ $arch == "x64" ]]; then
40
+ arch="x86_64"
41
+ fi
42
if [[ ! -z ${tag} ]]; then
- echo "Installing ko @ ${tag} for ${os}"
- curl -fsL https://github.com/ko-build/ko/releases/download/${tag}/ko_${tag:1}_${os}_x86_64.tar.gz | sudo tar xzf - -C /usr/local/bin ko
43
+ echo "Installing ko @ ${tag} for ${os} ${arch}"
44
+ curl -fsL https://github.com/ko-build/ko/releases/download/${tag}/ko_${tag:1}_${os}_${arch}.tar.gz | sudo tar xzf - -C /usr/local/bin ko
45
46
47
if [[ ! -z ${KO_DOCKER_REPO} ]]; then
0 commit comments