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