File tree Expand file tree Collapse file tree 4 files changed +10
-9
lines changed Expand file tree Collapse file tree 4 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 40
40
github_token : ${{ secrets.github_token }}
41
41
reporter : github-pr-review
42
42
level : error
43
- haml_lint_config : ' ./testdata/.haml-lint.yml'
43
+ haml_lint_config : -c ./testdata/.haml-lint.yml
44
44
reviewdog_flags : -filter-mode=file -fail-on-error
Original file line number Diff line number Diff line change @@ -29,9 +29,9 @@ inputs:
29
29
description : ' Additional reviewdog flags'
30
30
default : ' '
31
31
# ## Flags for haml-lint
32
- haml_lint_config :
33
- description : ' Path to config file '
34
- default : ' .haml-lint.yml '
32
+ haml_lint_flags :
33
+ description : ' Additional haml-lint flags '
34
+ default : ' '
35
35
runs :
36
36
using : ' docker'
37
37
image : ' Dockerfile'
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
set -e
3
3
4
- config () {
4
+ haml_lint_flags () {
5
5
if [ -n " $1 " ]; then
6
- echo " -c $1 "
6
+ echo " $1 "
7
7
fi
8
8
}
9
9
13
13
14
14
export REVIEWDOG_GITHUB_API_TOKEN=" ${INPUT_GITHUB_TOKEN} "
15
15
16
- haml-lint " $( config " $INPUT_HAML_LINT_CONFIG " ) " . \
17
- | reviewdog -efm=" %f:%l [%t] %m" \
16
+ # shellcheck disable=SC2046
17
+ # shellcheck disable=SC2086
18
+ haml-lint $( haml_lint_flags " $INPUT_HAML_LINT_FLAGS " ) . | reviewdog -efm=" %f:%l [%t] %m" \
18
19
-name=" haml-lint" \
19
20
-reporter=" ${INPUT_REPORTER:- github-pr-check} " \
20
21
-filter-mode=" ${INPUT_FILTER_MODE} " \
Original file line number Diff line number Diff line change 1
1
%h1
2
- it works
2
+ maybe it works
You can’t perform that action at this time.
0 commit comments