From bab9f6868948c729090462e22ed14469d817cb75 Mon Sep 17 00:00:00 2001 From: "M. J. Fromberger" Date: Fri, 14 Jan 2022 13:06:06 -0800 Subject: [PATCH] Attempt to fix the markdown link checker. (#387) Make sure it runs for pull requests as well as pushes to master. Otherwise, I think, it may not trigger to satisfy the requirement. * Fold in version bump from #385. Co-authored-by: sweexordious --- .github/workflows/action.yml | 9 ++++++++- .github/workflows/linter.yml | 5 ++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index ea35daac5..3cb9cb31b 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -1,6 +1,11 @@ name: Check Markdown links -on: push +on: + push: + branches: + - master + pull_request: + branches: [master] jobs: markdown-link-check: @@ -8,3 +13,5 @@ jobs: steps: - uses: actions/checkout@master - uses: gaurav-nelson/github-action-markdown-link-check@1.0.13 + with: + check-modified-files-only: 'yes' diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 1e557ad22..fb25f0d3e 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -13,8 +13,11 @@ jobs: steps: - name: Checkout Code uses: actions/checkout@v2 + with: + # Full git history is needed to get a proper list of changed files within `super-linter` + fetch-depth: 0 - name: Lint Code Base - uses: docker://github/super-linter:v3 + uses: docker://github/super-linter:v4 env: LINTER_RULES_PATH: . VALIDATE_ALL_CODEBASE: false