Skip to content

Commit 6152aa8

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

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

action.yml

+12-7
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,21 @@ runs:
3232
tag="${{ inputs.version }}"
3333
esac
3434
35-
os=${{ runner.os }}
36-
if [[ $os == "macOS" ]]; then
35+
case ${{ runner.os }} in
36+
macOS)
3737
os="darwin"
38-
fi
39-
if [[ $os == "Windows" ]]; then
38+
;;
39+
Windows)
4040
os="windows"
41-
fi
42-
if [[ $os == "LINUX" ]]; then
41+
;;
42+
"Linux")
4343
os="linux"
44-
fi
44+
;;
45+
*)
46+
echo "Unsupported OS: ${{ runner.os }}"
47+
exit 1
48+
;;
49+
esac
4550
4651
arch=${{ runner.architecture }}
4752
if [[ $arch == "X64" ]]; then

0 commit comments

Comments
 (0)