Skip to content

Commit e4d5764

Browse files
authored
Update action.yml
1 parent 6152aa8 commit e4d5764

File tree

1 file changed

+9
-15
lines changed

1 file changed

+9
-15
lines changed

action.yml

+9-15
Original file line numberDiff line numberDiff line change
@@ -48,26 +48,20 @@ runs:
4848
;;
4949
esac
5050
51-
arch=${{ runner.architecture }}
52-
if [[ $arch == "X64" ]]; then
51+
case $arch in
52+
"X64")
5353
arch="x86_64"
54-
fi
55-
if [[ $arch == "ARM64" ]]; then
54+
;;
55+
"ARM64")
5656
arch="arm64"
57-
fi
58-
if [[ $arch == "X86" ]]; then
59-
echo "X86 architecture is not supported"
60-
exit 1
61-
fi
62-
if [[ $arch == "ARM" ]]; then
63-
echo "ARM architecture is not supported"
57+
;;
58+
echo "Unsupported architecture: $arch"
6459
exit 1
65-
fi
66-
60+
;;
61+
esac
6762
68-
6963
if [[ ! -z ${tag} ]]; then
70-
echo "Installing goose @ ${tag} for ${os}"
64+
echo "Installing goose @ ${tag} for ${os}_${arch}"
7165
if [[ $os == "windows" ]]; then
7266
powershell -Command "Invoke-WebRequest -Uri https://github.com/pressly/goose/releases/download/${tag}/goose_${os}_${arch}.exe -OutFile C:\goose\goose.exe"
7367
else

0 commit comments

Comments
 (0)