forked from dsaltares/fetch-gh-release-asset
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yaml
53 lines (49 loc) · 1.37 KB
/
action.yaml
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
name: 'Fetch Github Release Asset'
description: 'Downloads an asset from a Github release'
inputs:
repo:
description: 'The `org/repo` containing the release.'
required: false
default: ''
version:
description: 'The release version to fetch from in the form `tags/<tag_name>` or `<release_id>`.'
required: false
default: 'latest'
file:
description: 'The name of the file to be downloaded.'
required: true
target:
description: 'Target file path.'
required: false
token:
description: 'The GitHub token. Typically this will be secrets.GITHUB_TOKEN'
required: false
default: ${{ github.token }}
hash:
description: 'Hash which should match the file. If present, check the hash of the file. If the hash does not match, exit with failure.'
required: false
retries:
description: 'defaults to 0, this is the number of times to retry'
required: false
default: 0
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.repo }}
- ${{ inputs.version }}
- ${{ inputs.file }}
- ${{ inputs.target }}
- ${{ inputs.token }}
- ${{ inputs.hash }}
- ${{ inputs.retries }}
outputs:
version:
description: 'The version of the release or tag'
name:
description: 'The name of the release'
body:
description: 'The body of the release'
branding:
icon: 'download-cloud'
color: 'orange'