From 8ac873aadf11f0ef00bce536061843a1788dc9e2 Mon Sep 17 00:00:00 2001 From: Marcin Tojek Date: Tue, 6 Dec 2022 14:54:23 +0100 Subject: [PATCH] fix: markdown-link-check base-branch should not be set on main branch --- .github/workflows/coder.yaml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/coder.yaml b/.github/workflows/coder.yaml index a91e6254e7d89..099894f8d5bac 100644 --- a/.github/workflows/coder.yaml +++ b/.github/workflows/coder.yaml @@ -674,7 +674,16 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@master - - uses: gaurav-nelson/github-action-markdown-link-check@v1 + # For the main branch: + - if: github.ref == 'refs/heads/main' && !github.event.pull_request.head.repo.fork + uses: gaurav-nelson/github-action-markdown-link-check@v1 + with: + use-quiet-mode: yes + use-verbose-mode: yes + config-file: .github/workflows/mlc_config.json + # For pull requests: + - if: github.ref != 'refs/heads/main' || github.event.pull_request.head.repo.fork + uses: gaurav-nelson/github-action-markdown-link-check@v1 with: use-quiet-mode: yes use-verbose-mode: yes