Skip to content

Commit f5591a2

Browse files
Updated .github/workflows/lint-yaml.yml NO_JIRA
1 parent ddf9b76 commit f5591a2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/lint-yaml.yml

+3-3
Original file line numberDiff line numberDiff 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: |
@@ -35,6 +35,6 @@ jobs:
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 }}

0 commit comments

Comments
 (0)