mirror of
https://github.com/CompeyDev/setup-rokit.git
synced 2024-12-12 04:30:37 +00:00
fix: shell script incompatibility on windows
This commit is contained in:
parent
93831c94b9
commit
806775cbc5
1 changed files with 5 additions and 2 deletions
|
@ -24,7 +24,10 @@ runs:
|
|||
steps:
|
||||
- name: Install Rokit
|
||||
run: |
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/rojo-rbx/rokit/main/scripts/install.sh | bash
|
||||
case ${{ runner.os }} in
|
||||
Linux|macOS) curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/rojo-rbx/rokit/main/scripts/install.sh | bash -s - $(echo ${{ inputs.version }} | tr -d v) ;;
|
||||
Windows) gh release download ${{ inputs.version }} --repo rojo-rbx/rokit --pattern *windows-x86_64.zip ;;
|
||||
esac
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ inputs.token }}
|
||||
shell: bash
|
||||
|
|
Loading…
Reference in a new issue