From 082c764fd54b9f7de94fc70681af15dc13831a2f Mon Sep 17 00:00:00 2001 From: Byron Gravenorst <50852695+bgravenorst@users.noreply.github.com> Date: Wed, 28 Aug 2024 16:51:53 +1000 Subject: [PATCH] Update action to run both file types. (#702) Signed-off-by: bgravenorst --- .github/workflows/nightly.yml | 35 ++++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 7c195bb46..75bfa8e1c 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -6,30 +6,35 @@ - cron: "0 0 * * *" workflow_dispatch: {} - concurrency: - group: nightly-${{ github.ref }} - cancel-in-progress: true - jobs: - linkCheck: - name: Run link check + linkCheckMdx: + name: Run link check on .mdx files + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - uses: actions/checkout@v4 + - name: LinkCheck mdx files + uses: ConsenSys/docs-gha/linkcheck@main + with: + FILE_EXTENSION: mdx + MODIFIED_FILES_ONLY: no + linkCheckMd: + needs: linkCheckMdx + name: Run link check on .md files + if: always() runs-on: ubuntu-latest - strategy: - matrix: - file-extensions: [".md", ".mdx"] - check-modified-files-only: [no] permissions: contents: read steps: - uses: actions/checkout@v4 - - name: LinkCheck + - name: LinkCheck md files uses: ConsenSys/docs-gha/linkcheck@main with: - FILE_EXTENSION: ${{ matrix.file-extensions }} - MODIFIED_FILES_ONLY: ${{ matrix.check-modified-files-only }} - + FILE_EXTENSION: md + MODIFIED_FILES_ONLY: no slackNotification: - needs: linkCheck + needs: [linkCheckMdx, linkCheckMd] if: ${{ failure() }} runs-on: ubuntu-latest steps: