From b2dc60c03057b19e472ae3412225ac273cb28d91 Mon Sep 17 00:00:00 2001 From: Marcin Tojek Date: Tue, 6 Dec 2022 15:41:06 +0100 Subject: [PATCH] fix: markdown-link-check base-branch should not be set on main branch (#5311) --- .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 a91e6254e7..099894f8d5 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