-
Notifications
You must be signed in to change notification settings - Fork 2
/
action.yml
37 lines (37 loc) · 1.36 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
name: 'Asset & Artifact Downloader'
description: 'Downloads a release asset, file in Docker container, or artifact from a workflow run based on branch or sha'
inputs:
owner:
required: true
repo:
required: true
file:
description: 'A regex of which the first file found is downloaded'
required: true
target:
description: 'A semver range matched to releases, or branch name, or sha'
required: true
prereleases:
description: 'Whether or not to include prerelease versions when treating target as a release version'
default: false
container-package:
description: 'If defined, target treated a release, and no asset found, look in a container package named this with release tag'
artifact-name:
description: 'When target is a branch or sha, the artifact name to look for the file in'
token:
required: true
default: ${{github.token}}
fail-on-missing-target:
required: true
default: true
description: 'Whether to fail the step if target release file or artifact-name is not found'
wait-for-exact-target:
required: true
default: false
description: 'When target is a branch or sha, whether to wait up for workflow to complete on exact target or try parents'
outputs:
downloaded-file:
description: 'The name of the downloaded file, or empty string if failure'
runs:
using: 'node20'
main: 'dist/index.mjs'