From 0d566a4104e8a5b44c78ee15576d2f0b03e7b086 Mon Sep 17 00:00:00 2001 From: Stephen Kitt Date: Thu, 14 Jan 2021 18:16:03 +0100 Subject: [PATCH] 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 --- .github/workflows/linting.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index 63cf427..f99ae45 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -31,6 +31,7 @@ jobs: with: config-file: ".markdownlinkcheck.json" check-modified-files-only: "yes" + base-branch: ${{ github.base_ref }} markdownlint: name: Markdown