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