This repository has been archived by the owner on Oct 14, 2024. It is now read-only.
forked from Wandalen/wretry.action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
59 lines (59 loc) · 1.78 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
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
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
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
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@v1.4.4_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 ) }}'
time_out: '${{ inputs.time_out }}'