From b4a1c32ed3a884c36e47886ae7a02f811892ce33 Mon Sep 17 00:00:00 2001 From: Kyle Carberry Date: Sun, 29 Jan 2023 23:29:57 +0000 Subject: [PATCH] chore: run markdown-link-check before linting types --- .github/workflows/ci.yaml | 48 +++++++++++++++++++-------------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 83fc65d394..70668893c9 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -64,6 +64,30 @@ jobs: with: ignore: node_modules + # Check for dead links in our markdown! + # 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 + name: Check for dead links (main) + timeout-minutes: 1 + with: + use-quiet-mode: yes + use-verbose-mode: yes + folder-path: docs + 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 + name: Check for dead links (pull request) + timeout-minutes: 1 + with: + use-quiet-mode: yes + use-verbose-mode: yes + check-modified-files-only: yes + base-branch: main + folder-path: docs + config-file: .github/workflows/mlc_config.json + # Lint our dashboard! - name: Cache node_modules id: cache-node @@ -91,30 +115,6 @@ jobs: cd helm make lint - # Check for dead links in our markdown! - # 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 - name: Check for dead links (main) - timeout-minutes: 1 - with: - use-quiet-mode: yes - use-verbose-mode: yes - folder-path: docs - 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 - name: Check for dead links (pull request) - timeout-minutes: 1 - with: - use-quiet-mode: yes - use-verbose-mode: yes - check-modified-files-only: yes - base-branch: main - folder-path: docs - config-file: .github/workflows/mlc_config.json - # Ensure AGPL and Enterprise are separated! - name: Check for AGPL code importing Enterprise... run: ./scripts/check_enterprise_imports.sh