We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ac2371 commit 6152aa8Copy full SHA for 6152aa8
action.yml
@@ -32,16 +32,21 @@ runs:
32
tag="${{ inputs.version }}"
33
esac
34
35
- os=${{ runner.os }}
36
- if [[ $os == "macOS" ]]; then
+ case ${{ runner.os }} in
+ macOS)
37
os="darwin"
38
- fi
39
- if [[ $os == "Windows" ]]; then
+ ;;
+ Windows)
40
os="windows"
41
42
- if [[ $os == "LINUX" ]]; then
+ "Linux")
43
os="linux"
44
45
+ *)
46
+ echo "Unsupported OS: ${{ runner.os }}"
47
+ exit 1
48
49
+ esac
50
51
arch=${{ runner.architecture }}
52
if [[ $arch == "X64" ]]; then
0 commit comments