-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
35 lines (29 loc) · 1.09 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: 'Setup Evo.lua environment'
description: 'Setup an Evo.lua environment by downloading a specific runtime version and adding it to the PATH.'
author: 'Evo.lua authors'
branding:
icon: code
color: green
inputs:
version:
description: 'Version tag of the release to download.'
required: true
runs:
using: 'composite'
steps:
- name: Install wget (Windows only))
if: runner.os == 'Windows'
run: choco install wget -y
shell: powershell
- name: Download installer scripts
run: wget https://github.com/evo-lua/evo-setup-action/raw/main/install-dependencies.sh && wget https://github.com/evo-lua/evo-setup-action/raw/main/download-release.sh
shell: bash
- name: Install dependencies
run: chmod +x install-dependencies.sh && ./install-dependencies.sh
shell: bash
- name: Download tagged release
run: chmod +x download-release.sh && ./download-release.sh ${{ inputs.version }}
shell: bash
- name: Add executable to PATH
run: echo "$(pwd)" >> $GITHUB_PATH
shell: bash