10000 Fix OS variable assignment in action.yaml · coder/setup-action@b922775 · GitHub
[go: up one dir, main page]

Skip to content

Commit b922775

Browse files
committed
Fix OS variable assignment in action.yaml
1 parent 66b9e3b commit b922775

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

action.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,11 @@ runs:
3737
else
3838
ARCH="amd64"
3939
fi
40-
OS=${{ runner.os | toLower }}
40+
if [ "${{ runner.os }}" == "macOS" ]; then
41+
OS="darwin"
42+
else
43+
OS="linux"
44+
fi
4145
curl -fsSL ${{ inputs.access_url }}/bin/coder-${OS}-${ARCH} -o $HOME/.local/bin/coder
4246
chmod +x $HOME/.local/bin/coder
4347
echo "$HOME/.local/bin" >> $GITHUB_PATH

0 commit comments

Comments
 (0)
0