File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -14,12 +14,12 @@ jobs:
14
14
steps :
15
15
- uses : actions/checkout@v3
16
16
with :
17
- fetch-depth : 2
17
+ fetch-depth : 0
18
18
19
19
- name : Modified files
20
20
id : file-changes
21
21
run : |
22
- echo "changed-files=$(git diff --name-only -r HEAD^1 HEAD | grep 'Dockerfile' | tr '\n' ' ')" >> $GITHUB_OUTPUT
22
+ echo "changed-files=$(git diff --name-only -r origin/${GITHUB_BASE_REF} origin/${GITHUB_HEAD_REF} | grep 'Dockerfile' | tr '\n' ' ')" >> $GITHUB_OUTPUT
23
23
24
24
- name : Check GitHub event type to determine reporter type
25
25
run : |
35
35
fail_on_error : false
36
36
filter_mode : diff_context
37
37
hadolint_flags : ${{ steps.file-changes.outputs.changed-files }}
38
- level : warning
38
+ level : error
39
39
reporter : ${{ env.REVIEWDOG_REPORTER }}
You can’t perform that action at this time.
0 commit comments