forked from JarvusInnovations/background-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
40 lines (32 loc) · 1.46 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
name: 'background-action'
description: |
Background processes: tail std(out|err), dedupe post-run lines. Monitor exit-code and file/port/socket/http(s) (un)readiness.
inputs:
run:
description: commands to run, supports multi-line commands (to background multiple processes, use & at the end of each line)
required: true
working-directory:
description: the current working directory for the shell running the commands
required: false
wait-on:
description: 'resources to wait on -- separated by commas or newlines, supported prefixes: [file,http,https,http-get,https-get,tcp,socket] (for advanced usage, pass a JSON serialized wait-on config)'
required: false
wait-for:
description: duration to wait for resources to be available (specify unit postfix, defaults to ms)
default: 30s
tail:
description: tail log output while waiting on resources to be available [stderr,stdout,true,false]
default: true
log-output:
description: specify which logs (stdout,stderr) to output post-run (after the run has completed or failed) (stderr,stdout,true,false)
default: stdout,stderr
log-output-resume:
description: truncate tailed stderr/stdout output from post-run logs (i.e. deduplicate log output) [stderr,stdout,true,false]
default: false
log-output-if:
description: control if post-run logging occurs (timeout,early-exit,failure,true,false)
default: true
runs:
using: 'node16'
main: 'index.js'
post: 'index.js'