forked from Wandalen/wretry.action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
52 lines (52 loc) · 1.57 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
name: retry action
author: |
Wandalen <[email protected]>
dmvict <[email protected]>
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
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
attempt_limit:
description: Number of attempts
required: false
default: 2
attempt_delay:
description: A delay between attempts in ms
required: false
default: 0
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/[email protected]_js_action
with:
action: '${{ inputs.action }}'
command: '${{ inputs.command }}'
with: '${{ inputs.with }}'
current_path: '${{ inputs.current_path }}'
attempt_limit: '${{ inputs.attempt_limit }}'
attempt_delay: '${{ inputs.attempt_delay }}'
env_context: '${{ toJSON( env ) }}'
github_context: '${{ toJSON( github ) }}'
job_context: '${{ toJSON( job ) }}'
matrix_context: '${{ toJSON( matrix ) }}'