-
Notifications
You must be signed in to change notification settings - Fork 10
/
action.yml
42 lines (34 loc) · 1.5 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
name: 'background-action'
branding:
color: orange
icon: terminal
description: Background commands with log tailing/capture; waits until file/port/socket/http are ready to proceed. Isolates/dedupe errors.
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: 'node20'
main: 'index.js'
post: 'index.js'