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:
1515 steps :
1616 - uses : actions/checkout@v3
1717 with :
18- fetch-depth : 2
18+ fetch-depth : 0
1919
2020 - name : Modified files
2121 id : file-changes
2222 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
2424
2525 - name : Check GitHub event type to determine reporter type
2626 run : |
3535 with :
3636 fail_on_error : false
3737 filter_mode : diff_context
38- level : warning
38+ level : error
3939 yamllint_flags : ${{ steps.file-changes.outputs.changed-files }}
4040 reporter : ${{ env.REVIEWDOG_REPORTER }}
You can’t perform that action at this time.
0 commit comments