Skip to content

Commit

Permalink
Update action to run both file types. (#702)
Browse files Browse the repository at this point in the history
Signed-off-by: bgravenorst <[email protected]>
  • Loading branch information
bgravenorst authored Aug 28, 2024
1 parent 3ed3c81 commit 082c764
Showing 1 changed file with 20 additions and 15 deletions.
35 changes: 20 additions & 15 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 082c764

Please sign in to comment.