Use the PR base branch as reference when linting

To determine the changed files, the Markdown linter needs to know the
base branch; instead of using the default everywhere, use the base
branch set in the PR.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
This commit is contained in:
Stephen Kitt
2021-01-21 09:49:13 -05:00
committed by Thomas Pantelis
parent 83aeade0cc
commit 0d566a4104
+1
View File
@@ -31,6 +31,7 @@ jobs:
with: with:
config-file: ".markdownlinkcheck.json" config-file: ".markdownlinkcheck.json"
check-modified-files-only: "yes" check-modified-files-only: "yes"
base-branch: ${{ github.base_ref }}
markdownlint: markdownlint:
name: Markdown name: Markdown