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 @@ -15,12 +15,12 @@ jobs:
15
15
steps :
16
16
- uses : actions/checkout@v3
17
17
with :
18
- fetch-depth : 2
18
+ fetch-depth : 0
19
19
20
20
- name : Modified files
21
21
id : file-changes
22
22
run : |
23
- echo "changed-files=$(git diff --name-only -r HEAD^1 HEAD | grep -E "\.(yml|yaml)" | tr '\n' ' ')" >> $GITHUB_OUTPUT
23
+ echo "changed-files=$(git diff --name-only -r origin/${GITHUB_BASE_REF} origin/${GITHUB_HEAD_REF} | grep -E "\.(yml|yaml)" | tr '\n' ' ')" >> $GITHUB_OUTPUT
24
24
25
25
- name : Check GitHub event type to determine reporter type
26
26
run : |
35
35
with :
36
36
fail_on_error : false
37
37
filter_mode : diff_context
38
- level : warning
38
+ level : error
39
39
yamllint_flags : ${{ steps.file-changes.outputs.changed-files }}
40
40
reporter : ${{ env.REVIEWDOG_REPORTER }}
You can’t perform that action at this time.
0 commit comments