forked from benc-uk/workflow-dispatch
-
Notifications
You must be signed in to change notification settings - Fork 48
/
action.yaml
76 lines (72 loc) · 2.97 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: 'Workflow Dispatch and wait'
description: 'Trigger and chain GitHub Actions workflows with workflow_dispatch events and wait for result'
inputs:
workflow:
description: 'Name or ID of workflow to run'
required: true
token:
description: 'GitHub token with repo write access, can NOT use secrets.GITHUB_TOKEN, see readme'
required: true
inputs:
description: 'Inputs to pass to the workflow, must be a JSON string. All values must be strings (even if used as boolean or number)'
required: false
ref:
description: 'The reference of the workflow run. The reference can be a branch, tag, or a commit SHA'
required: false
repo:
description: 'Repo owner & name, slash separated, only set if invoking a workflow in a different repo'
required: false
run-name:
description: 'If specified will select the run ID based on the run name'
required: false
display-workflow-run-url:
description: 'Get the URL of the triggered workflow and display it in logs (useful to follow the progress of the triggered workflow)'
required: false
default: true
display-workflow-run-url-interval:
description: 'The time to wait (+unit) between two polls to get the URL of the workflow run'
required: false
default: 1m
display-workflow-run-url-timeout:
description: 'Maximum amount of time (+unit) to wait for the URL of the workflow run. If the timeout is reached, it is just ignored'
required: false
default: 10m
wait-for-completion:
description: 'Block until the triggered workflow has finished'
required: false
default: true
wait-for-completion-timeout:
description: 'Maximum amount of time (+unit) to wait to mark workflow as timed out'
required: false
default: 1h
wait-for-completion-interval:
description: 'Time to wait (+unit) between two polls to get run status'
required: false
default: 1m
workflow-logs:
description: >-
Indicate what to do with logs of the triggered workflow.
`ignore` do not retrieve logs from tiggered workflow.
`print` retrieves logs from triggered workflow and print in the workflow that triggered the other workflow.
`output` retrieves logs from triggered workflow and set them as `workflow-logs` output.
`json-output` retrieves logs from triggered workflow and return a json array groupped by job name.
required: false
default: ignore
outputs:
workflow-conclusion:
description: 'Conclusion of the triggered workflow'
workflow-id:
description: 'ID of the triggered workflow'
workflow-url:
description: 'URL of the triggered workflow'
workflow-logs:
description: |
Logs of the triggered workflow. Based on `inputs.workflow-logs`, format is set to:
- `output`: Multiline logs formatted as: '<job-name> | <datetime> <message>'
- `json-output`: JSON logs formatted as: '{"<job-name>": [{"<datetime>": "<message>"}]'
runs:
using: 'node20'
main: 'dist/index.js'
branding:
color: purple
icon: send