Commit e4d5764 1 parent 6152aa8 commit e4d5764 Copy full SHA for e4d5764
File tree 1 file changed +9
-15
lines changed
1 file changed +9
-15
lines changed Original file line number Diff line number Diff line change @@ -48,26 +48,20 @@ runs:
48
48
;;
49
49
esac
50
50
51
- arch=${{ runner.architecture }}
52
- if [[ $arch == "X64" ]]; then
51
+ case $arch in
52
+ "X64")
53
53
arch="x86_64"
54
- fi
55
- if [[ $arch == "ARM64" ]]; then
54
+ ;;
55
+ "ARM64")
56
56
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"
64
59
exit 1
65
- fi
66
-
60
+ ;;
61
+ esac
67
62
68
-
69
63
if [[ ! -z ${tag} ]]; then
70
- echo "Installing goose @ ${tag} for ${os}"
64
+ echo "Installing goose @ ${tag} for ${os}_${arch} "
71
65
if [[ $os == "windows" ]]; then
72
66
powershell -Command "Invoke-WebRequest -Uri https://github.com/pressly/goose/releases/download/${tag}/goose_${os}_${arch}.exe -OutFile C:\goose\goose.exe"
73
67
else
You can’t perform that action at this time.
0 commit comments