File tree Expand file tree Collapse file tree 3 files changed +12
-12
lines changed Expand file tree Collapse file tree 3 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -25,12 +25,12 @@ jobs:
25
25
- name: Check Prometheus rules
26
26
uses: beatlabs/promtool-github-action@v0.0.1
27
27
with:
28
- promtool_command : 'check'
29
- promtool_files : 'monitoring/prometheus/*.y*ml'
28
+ cmd : 'check'
29
+ files : 'monitoring/prometheus/*.y*ml'
30
30
31
31
- name: Test Prometheus rules
32
32
uses: beatlabs/promtool-github-action@v0.0.1
33
33
with:
34
- promtool_command : 'test'
35
- promtool_files : 'monitoring/prometheus/test*.y*ml'
34
+ cmd : 'test'
35
+ files : 'monitoring/prometheus/test*.y*ml'
36
36
```
Original file line number Diff line number Diff line change @@ -3,11 +3,11 @@ name: 'Promtool GitHub Actions'
3
3
description : ' Run promtool commands against Prometheus rules files'
4
4
author : ' Markos Chandras'
5
5
inputs :
6
- promtool_command :
6
+ cmd :
7
7
description : ' The promtool command to run'
8
8
required : true
9
9
default : false
10
- promtool_files :
10
+ files :
11
11
description : ' Files regex for prometheus rules files'
12
12
required : true
13
13
default : false
Original file line number Diff line number Diff line change 2
2
3
3
set -e
4
4
5
- if test ! -n " ${INPUT_PROMTOOL_FILES } " ; then
6
- echo " No 'promtool_files ' input was specified"
5
+ if test ! -n " ${INPUT_FILES } " ; then
6
+ echo " No 'files ' input was specified"
7
7
exit 1
8
8
fi
9
9
10
- if test ! -n " ${INPUT_PROMTOOL_COMMAND } " ; then
11
- echo " No 'promtool_command ' input was specified"
10
+ if test ! -n " ${INPUT_CMD } " ; then
11
+ echo " No 'cmd ' input was specified"
12
12
exit 1
13
13
fi
14
14
15
- PROMTOOL_ACTION_FILES=${INPUT_PROMTOOL_FILES }
16
- PROMTOOL_ACTION_COMMAND=${INPUT_PROMTOOL_COMMAND }
15
+ PROMTOOL_ACTION_FILES=${INPUT_FILES }
16
+ PROMTOOL_ACTION_COMMAND=${INPUT_CMD }
17
17
18
18
main () {
19
19
eval promtool " ${PROMTOOL_ACTION_COMMAND} " rules " ${GITHUB_WORKSPACE} /${PROMTOOL_ACTION_FILES} "
You can’t perform that action at this time.
0 commit comments