Skip to content

Commit 401314f

Browse files
Updated .github/workflows/lint-markdown.yml NO_JIRA
1 parent 63d64f8 commit 401314f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/lint-markdown.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v3
1616
with:
17-
fetch-depth: 2
17+
fetch-depth: 0
1818

1919
- name: Modified files
2020
id: file-changes
2121
run: |
22-
echo "changed-files=$(git diff --name-only -r HEAD^1 HEAD | grep '\.md' | tr '\n' ' ')" >> $GITHUB_OUTPUT
22+
echo "changed-files=$(git diff --name-only -r origin/${GITHUB_BASE_REF} origin/${GITHUB_HEAD_REF} | grep '\.md' | tr '\n' ' ')" >> $GITHUB_OUTPUT
2323
2424
- name: Check GitHub event type to determine reporter type
2525
run: |
@@ -34,6 +34,6 @@ jobs:
3434
with:
3535
fail_on_error: false
3636
filter_mode: diff_context
37-
level: warning
37+
level: error
3838
markdownlint_flags: ${{ steps.file-changes.outputs.changed-files }}
3939
reporter: ${{ env.REVIEWDOG_REPORTER }}

0 commit comments

Comments
 (0)