diff --git a/.github/workflows/link-check.json b/.github/workflows/link-check.json deleted file mode 100644 index e38a9fa7d..000000000 --- a/.github/workflows/link-check.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "ignorePatterns": [ - { - "pattern": "^http(s)?://localhost" - }, - { - "pattern": "^http(s)?://127.0.0.1" - }, - { - "comment": "This is a private repos", - "pattern": "^http(s)?://gitlab.com/ConsenSys/" - }, - { - "comment": "This is a private repos", - "pattern": "^http(s)?://github.com/ConsenSys/orchestrate" - }, - { - "comment": "This is a private repo", - "pattern": "^http(s)?://github.com/INFURA/docs(?:/(issues|pulls))?" - }, - { - "comment": "Consensys.net now has DDoS attack protection", - "pattern": "^http(s)?://consensys.net" - }, - { - "comment": "Exclude addresses with extra data variable placeholders (not yet replaced when checking for links)", - "pattern": "{{[a-zA-Z_\\-\\.\\[\\]\\']+}}" - }, - { - "comment": "Exclude Infura endpoints that require an API key", - "pattern": "^https?:\\/\\/[a-zA-Z0-9.-]*\\.infura\\.io\\/v3\\/.*$" - }, - { - "pattern": "^http(s)?://.+.zendesk.com" - }, - { - "pattern": "^http(s)?://.+.etherscan.io" - }, - { - "pattern": "^http(s)?://help.figma.com" - }, - { - "pattern": "^http(s)?://(docs\\.)?metamask\\.io" - }, - { - "comment": "Skip urls in the redoc macro with entity", - "pattern": "http(s)?://.+\\&\\#39\\;" - }, - { - "comment": "Skip urls in the redoc macro with char", - "pattern": "http(s)?://.+'" - } - ], - "httpHeaders": [ - { - "urls": [ - "https://github.com/", - "https://guides.github.com/", - "https://help.github.com/", - "https://docs.github.com/" - ], - "headers": { - "Accept-Encoding": "zstd, br, gzip, deflate" - } - } - ], - "timeout": "30s", - "aliveStatusCodes": [200, 206, 403], - "retryOn429": true -} diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 8a026f52b..7c195bb46 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -14,21 +14,20 @@ linkCheck: name: Run link check 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 - id: linkcheck - uses: gaurav-nelson/github-action-markdown-link-check@v1 + uses: ConsenSys/docs-gha/linkcheck@main with: - use-quiet-mode: 'yes' - use-verbose-mode: 'yes' - folder-path: './docs' - check-modified-files-only: 'no' - base-branch: main - config-file: './.github/workflows/link-check.json' - + FILE_EXTENSION: ${{ matrix.file-extensions }} + MODIFIED_FILES_ONLY: ${{ matrix.check-modified-files-only }} + slackNotification: needs: linkCheck if: ${{ failure() }}