mirror of
https://github.com/CompeyDev/setup-rokit.git
synced 2024-12-12 04:30:37 +00:00
Simplify downloading
This commit is contained in:
parent
c168855a1a
commit
fdb395acd4
1 changed files with 8 additions and 15 deletions
23
action.yml
23
action.yml
|
@ -26,25 +26,18 @@ runs:
|
|||
using: 'composite'
|
||||
steps:
|
||||
- name: Download aftman
|
||||
if: runner.os == 'Linux'
|
||||
run: gh release download ${{ inputs.version }} --repo LPGhatguy/aftman --pattern *linux-x86_64.zip
|
||||
run: |
|
||||
case "Windows" in
|
||||
Linux) pattern="*linux-x86_64.zip" ;;
|
||||
macOS) pattern="*macos-x86_64.zip" ;;
|
||||
Windows) pattern="*windows-x86_64.zip" ;;
|
||||
esac
|
||||
|
||||
gh release download ${{ inputs.version }} --repo LPGhatguy/aftman --pattern $pattern
|
||||
shell: bash
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ inputs.token }}
|
||||
|
||||
- name: Download aftman
|
||||
if: runner.os == 'macOS'
|
||||
run: gh release download ${{ inputs.version }} --repo LPGhatguy/aftman --pattern *macos-x86_64.zip
|
||||
shell: bash
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ inputs.token }}
|
||||
|
||||
- name: Download aftman
|
||||
if: runner.os == 'Windows'
|
||||
run: gh release download ${{ inputs.version }} --repo LPGhatguy/aftman --pattern *windows-x86_64.zip
|
||||
shell: bash
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ inputs.token }}
|
||||
|
||||
- name: Install aftman
|
||||
run: |
|
||||
|
|
Loading…
Reference in a new issue