-
Notifications
You must be signed in to change notification settings - Fork 22
/
action.yml
81 lines (81 loc) · 2.59 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
81
name: retry action
author: |
Wandalen <wandalen@obox.systems>
dmvict <dm.vict.kr@gmail.com>
branding:
icon: activity
color: white
description: Retries an Github Action step on failure
inputs:
action:
description: 'Github action name. Should be defined action or command, not both.'
required: false
command:
description: 'Command to run. Should be defined action or command, not both.'
required: false
pre_retry_command:
description: Command to run between retries.
required: false
with:
description: An options map for Github action
required: false
current_path:
description: >-
Setup working directory for the action. Works with only commands. Default
is `github.workspace` path.
required: false
steps_context:
description: >-
Pass context `steps` into an external action. If you need valid context
`steps`, then add option as described in `Readme.md`.
required: false
default: '{}'
attempt_limit:
description: Number of attempts
required: false
default: 2
attempt_delay:
description: A delay between attempts in ms
required: false
default: 0
time_out:
description: >-
Set time out in ms for entire step including all retries. By default
actions sets no time out.
required: false
default: false
retry_condition:
description: >-
Use any valid expression to decide the continuation of retries. Default
value is true.
required: false
default: true
github_token:
description: A token to access private actions. Does not required for public actions.
required: false
outputs:
outputs:
description: A pretty print JSON map with outputs from the wrapped action.
value: '${{ toJSON( steps.retry.outputs ) }}'
runs:
using: composite
steps:
- name: retry
id: retry
uses: Wandalen/wretry.action@v3.7.1_js_action
with:
action: '${{ inputs.action }}'
command: '${{ inputs.command }}'
pre_retry_command: '${{ inputs.pre_retry_command }}'
with: '${{ inputs.with }}'
current_path: '${{ inputs.current_path }}'
steps_context: '${{ inputs.steps_context }}'
attempt_limit: '${{ inputs.attempt_limit }}'
attempt_delay: '${{ inputs.attempt_delay }}'
retry_condition: '${{ inputs.retry_condition }}'
env_context: '${{ toJSON( env ) }}'
github_context: '${{ toJSON( github ) }}'
job_context: '${{ toJSON( job ) }}'
matrix_context: '${{ toJSON( matrix ) }}'
time_out: '${{ inputs.time_out }}'
github_token: '${{ inputs.github_token }}'