-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathaction.yml
52 lines (52 loc) · 1.64 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: 'Payload Info'
description: 'Extracts info from the webhook payload object in Github Actions using jq notation.'
branding:
icon: 'scissors'
color: 'gray-dark'
inputs:
filter_push:
description: 'Filter to be applied to the webhook payload object in case of a push.'
required: true
default: '.'
filter_pull_request:
description: 'Filter to be applied to the webhook payload object in case of a pull request.'
required: false
default: '.pull_request.'
filter_prefix:
description: 'String to be prefixed to all filters.'
required: false
default: ''
output:
description: 'Type of output. It can be "pretty", "json", "compact", or "string".'
required: false
default: 'pretty'
slurp:
description: 'If output will be surrounded between [ and ].'
required: false
default: false
sort:
description: 'Sort object keys in alphabetical order.'
required: false
default: false
dump:
description: 'If the webhook payload for the event that triggered the workflow should be dumped as a JSON file or not.'
required: false
default: true
dump_path:
description: 'Path to the JSON payload file to be dumped.'
required: false
default: 'gh-payload.json'
print:
description: 'If the webhook payload for the event that triggered the workflow should be output.'
required: false
default: true
outputs:
value:
description: 'Value of the key provided as input.'
branch:
description: 'Name of the branch related to this workflow.'
pull_request:
description: 'If this workflow is running on a pull request or not.'
runs:
using: 'node16'
main: 'index.js'