fix: shell script incompatibility on windows

This commit is contained in:
Erica Marigold 2024-08-03 18:49:44 +05:30 committed by GitHub
parent 93831c94b9
commit 806775cbc5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -24,7 +24,10 @@ runs:
steps: steps:
- name: Install Rokit - name: Install Rokit
run: | 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: env:
GITHUB_TOKEN: ${{ inputs.token }} GITHUB_TOKEN: ${{ inputs.token }}
shell: bash shell: bash