-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
71 lines (71 loc) · 1.86 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: 'Release downloader'
description: 'Download a release'
inputs:
repository:
description: Repository containing release
required: false
default: ${{ github.repository }}
destination:
description: Destination
required: false
default: ${{ github.workspace }}
version:
description: Version to retrieve (defaults to latest)
required: false
default: ''
os:
description: OS to favor (defaults to current)
required: false
default: ''
os-pattern:
description: OS pattern to filter (defaults to calculating based on os)
required: false
default: ''
arch:
description: Architecture to favor (defaults to current)
required: false
default: ''
arch-pattern:
description: Architecture pattern to filter (defaults to calculating based on arch)
required: false
default: ''
file-re:
description: File pattern (in case os/arch aren't enough to select)
required: false
default: ''
token:
description: GitHub Token
required: false
default: ${{ github.token }}
trace:
description: Trace action
required: false
default: ''
outputs:
url:
description: Downloaded artifact URL
value: ${{ steps.action.outputs.url }}
path:
description: Path to file on disk
value: ${{ steps.action.outputs.path }}
runs:
using: "composite"
steps:
- name: Run downloader
id: action
continue-on-error: false
shell: bash
run: |
: Run downloader
$GITHUB_ACTION_PATH/gh-release-downloader
env:
GH_TOKEN: ${{ inputs.token }}
repo: ${{ inputs.repository }}
destination: ${{ inputs.destination }}
version: ${{ inputs.version }}
os: ${{ inputs.os }}
os_re: ${{ inputs.os-pattern }}
arch: ${{ inputs.arch }}
arch_re: ${{ inputs.arch-pattern }}
file_re: ${{ inputs.file-re }}
trace: ${{ inputs.trace }}