forked from isometry/setup-generic-tool
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yaml
More file actions
35 lines (32 loc) · 856 Bytes
/
action.yaml
File metadata and controls
35 lines (32 loc) · 856 Bytes
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-generic-tool
description: Setup arbitrary tools from GitHub Releases or tool cache
author: isometry
inputs:
name:
description: GitHub repository of the desired tool
required: true
tool:
description: Override tool name, if it doesn't match the repo name
required: false
default: ""
version:
description: Version of tool to install
required: false
default: latest
outputs:
version:
description: Version of tool installed
value: ${{ steps.setup.outputs.version }}
runs:
using: composite
steps:
- name: Setup Tool
id: setup
shell: bash
env:
GH_TOKEN: ${{ github.token }}
NAME: ${{ inputs.name }}
VERSION: ${{ inputs.version }}
TOOL: ${{ inputs.tool }}
run: |
"${GITHUB_ACTION_PATH}/setup.sh" "${NAME}" "${VERSION}" "${TOOL}"