mirror of
https://github.com/CompeyDev/setup-rokit.git
synced 2024-12-12 12:40:36 +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'
|
using: 'composite'
|
||||||
steps:
|
steps:
|
||||||
- name: Download aftman
|
- name: Download aftman
|
||||||
if: runner.os == 'Linux'
|
run: |
|
||||||
run: gh release download ${{ inputs.version }} --repo LPGhatguy/aftman --pattern *linux-x86_64.zip
|
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
|
shell: bash
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ inputs.token }}
|
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
|
- name: Install aftman
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Reference in a new issue