forked from selfagency/capture-output
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
43 lines (43 loc) · 1.04 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
name: 'Capture Output'
author: 'selfagency'
description: 'Capture the output (and duration) of a command as a GitHub Actions `output` or file'
branding:
icon: 'list'
color: 'green'
inputs:
cmd:
description: 'Bash command to run'
type: string
required: true
args:
description: 'Comma separated list of arguments to pass to the command'
type: string
required: false
hide-warnings:
description: 'Hide warnings in error output'
type: boolean
required: false
default: false
file:
description: 'Full path to save file'
type: string
required: false
fail:
description: Fail if the command returns a non-zero exit code
type: boolean
required: false
default: true
outputs:
output:
description: 'Output of the command'
stdout:
description: 'Command `stdout` output'
stderr:
description: 'Command `stderr` output'
error-code:
description: 'Command exit code'
duration:
description: 'Duration of the command in seconds'
runs:
using: 'node20'
main: 'dist/index.cjs'