Skip to content

Commit

Permalink
Add nightly link checker action. (#1502)
Browse files Browse the repository at this point in the history
* Add nightly link checker action.

Signed-off-by: bgravenorst <[email protected]>

* Use standardised repo.

Signed-off-by: bgravenorst <[email protected]>

* Use standardised repo.

Signed-off-by: bgravenorst <[email protected]>

* Use standardised repo.

Signed-off-by: bgravenorst <[email protected]>

* Use standardised repo.

Signed-off-by: bgravenorst <[email protected]>

---------

Signed-off-by: bgravenorst <[email protected]>
  • Loading branch information
bgravenorst authored Aug 23, 2024
1 parent eafe1b2 commit 8c99f7a
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
name: Nightly check

on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch: {}

concurrency:
group: nightly-${{ github.ref }}
cancel-in-progress: true

jobs:
linkCheck:
name: Run link check
runs-on: ubuntu-latest
strategy:
matrix:
file-extensions: [".md", ".mdx"]
check-modified-files-only: [no]
permissions:
contents: read
steps:
- name: LinkCheck
uses: ConsenSys/docs-gha/linkcheck@main
with:
FILE_EXTENSION: ${{ matrix.file-extensions }}
MODIFIED_FILES_ONLY: ${{ matrix.check-modified-files-only }}

slackNotification:
needs: linkCheck
if: ${{ failure() }}
runs-on: ubuntu-latest
steps:
- name: Slack Notification
uses: rtCamp/action-slack-notify@v2
env:
SLACK_CHANNEL: doc-ci-alerts
SLACK_COLOR: danger
SLACK_USERNAME: ci
SLACK_TITLE: MetaMask docs nightly build - Failure
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
MSG_MINIMAL: true

0 comments on commit 8c99f7a

Please sign in to comment.