We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ddf9b76 commit f5591a2Copy full SHA for f5591a2
.github/workflows/lint-yaml.yml
@@ -15,12 +15,12 @@ jobs:
15
steps:
16
- uses: actions/checkout@v3
17
with:
18
- fetch-depth: 2
+ fetch-depth: 0
19
20
- name: Modified files
21
id: file-changes
22
run: |
23
- echo "changed-files=$(git diff --name-only -r HEAD^1 HEAD | grep -E "\.(yml|yaml)" | tr '\n' ' ')" >> $GITHUB_OUTPUT
+ 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
25
- name: Check GitHub event type to determine reporter type
26
@@ -35,6 +35,6 @@ jobs:
35
36
fail_on_error: false
37
filter_mode: diff_context
38
- level: warning
+ level: error
39
yamllint_flags: ${{ steps.file-changes.outputs.changed-files }}
40
reporter: ${{ env.REVIEWDOG_REPORTER }}
0 commit comments