-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yaml
52 lines (50 loc) · 1.5 KB
/
action.yaml
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
name: 'dataset-verify'
description: 'Verifies a DataSet power query returns the correct expected number of rows'
branding:
icon: 'book-open'
color: 'green'
inputs:
token:
description: 'The DataSet log read api token to use.'
required: true
scalyr-server:
description: 'The DataSet URL to use (such as https://www.scalyr.com or https://eu.scalyr.com)'
default: '' # Empty indicates to use commandline default.
start:
description: 'The start of the query time range.'
default: '' # Empty indicates to use the commandline default
end:
description: 'The end of the query time range.'
default: '' # Empty indicates to use the commandline default
query:
description: 'The power query to execute.'
required: true
row-count-eq:
description: 'If specified, requires the row count to equal this number.'
default: ''
row-count-lt:
description: 'If specified, requires the row count to be less than this number.'
default: ''
row-count-gt:
description: 'If specified, requires the row count to greater than this number.'
default: ''
runs:
using: 'docker'
image: 'Dockerfile'
args:
- -t
- "${{inputs.token}}"
- --scalyr-server
- "${{inputs.scalyr-server}}"
- --start
- "${{inputs.start}}"
- --end
- "${{inputs.end}}"
- -eq
- "${{inputs.row-count-eq}}"
- -lt
- "${{inputs.row-count-lt}}"
- -gt
- "${{inputs.row-count-gt}}"
- "${{inputs.query}}"
entrypoint: '/action/remove_empty_args_and_invoke.sh'