Skip to content

Commit b2dc60c

Browse files
authored
fix: markdown-link-check base-branch should not be set on main branch (coder#5311)
1 parent e17fd0b commit b2dc60c

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/coder.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,16 @@ jobs:
674674
runs-on: ubuntu-latest
675675
steps:
676676
- uses: actions/checkout@master
677-
- uses: gaurav-nelson/github-action-markdown-link-check@v1
677+
# For the main branch:
678+
- if: github.ref == 'refs/heads/main' && !github.event.pull_request.head.repo.fork
679+
uses: gaurav-nelson/github-action-markdown-link-check@v1
680+
with:
681+
use-quiet-mode: yes
682+
use-verbose-mode: yes
683+
config-file: .github/workflows/mlc_config.json
684+
# For pull requests:
685+
- if: github.ref != 'refs/heads/main' || github.event.pull_request.head.repo.fork
686+
uses: gaurav-nelson/github-action-markdown-link-check@v1
678687
with:
679688
use-quiet-mode: yes
680689
use-verbose-mode: yes

0 commit comments

Comments
 (0)