forked from marcosnils/bin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
48 lines (43 loc) · 1.39 KB
/
Copy pathaction.yml
File metadata and controls
48 lines (43 loc) · 1.39 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
name: 'Setup bin'
description: 'Install the bin binary manager and optionally install binaries from GitHub releases'
branding:
icon: 'package'
color: 'blue'
inputs:
version:
description: 'Version of bin to install (e.g., v1.1.0). Defaults to latest.'
required: false
default: 'latest'
install:
description: |
Newline-separated list of GitHub repositories to install binaries from.
Supported formats:
- org/repo (installs the latest release)
- org/repo@version (installs a specific version)
required: false
default: ''
github-token:
description: 'GitHub token used for API requests and downloading release assets.'
required: false
default: ${{ github.token }}
outputs:
version:
description: 'The installed version of bin (e.g., v1.1.0)'
value: ${{ steps.install-bin.outputs.version }}
runs:
using: 'composite'
steps:
- name: Install bin
id: install-bin
shell: bash
env:
INPUT_VERSION: ${{ inputs.version }}
INPUT_GITHUB_TOKEN: ${{ inputs.github-token }}
run: node "${{ github.action_path }}/action/setup.js"
- name: Install binaries with bin
if: ${{ inputs.install != '' }}
shell: bash
env:
INPUT_INSTALL: ${{ inputs.install }}
INPUT_GITHUB_TOKEN: ${{ inputs.github-token }}
run: node "${{ github.action_path }}/action/install.js"