forked from dawidd6/action-download-artifact
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
80 lines (79 loc) · 2.28 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
72
73
74
75
76
77
78
79
80
name: Download workflow artifact (@qiwi)
description: Download and extract an artifact associated with given workflow and commit
author: dawidd6
branding:
icon: download
color: blue
inputs:
github_token:
description: GitHub token
required: false
default: ${{github.token}}
workflow:
description: Workflow name
required: true
workflow_conclusion:
description: |
Wanted status or conclusion to search for in recent runs
https://docs.github.com/en/free-pro-team@latest/rest/reference/actions#list-workflow-runs
required: false
default: success
repo:
description: Repository name with owner (like actions/checkout)
required: false
default: ${{github.repository}}
pr:
description: Pull request number
required: false
commit:
description: Commit hash
required: false
branch:
description: Branch name
required: false
event:
description: Event type
required: false
run_id:
description: Workflow run id
required: false
run_number:
description: Workflow run number
required: false
name:
description: Artifact name (download all artifacts if not specified)
required: false
path:
description: Where to unpack the artifact
required: false
default: "./"
check_artifacts:
description: Check workflow run whether it has an artifact
required: false
search_artifacts:
description: Search workflow runs for artifact with specified name
required: false
search_depth:
description: Limit search depth. 0 means no limit. Default is 0.
required: false
skip_unpack:
description: Choose to skip unpacking the downloaded artifact(s)
required: false
dry_run:
description: Check the existence of artifact(s) without downloading.
required: false
nothrow:
description: Do not throw an error if artifact(s) not found.
required: false
outputs:
error_message:
description: The error message, if an error occurs
dry_run:
description: Boolean output which is true if the dry run was successful and false otherwise.
artifact_length:
description: The length of the found artifacts array.
artifact_hit:
description: Boolean output which is true if the artifact(s) was found and false otherwise.
runs:
using: node16
main: index.js