generated from Consensys/doctools.template-site
-
Notifications
You must be signed in to change notification settings - Fork 442
51 lines (47 loc) · 1.31 KB
/
nightly.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
---
name: Nightly check
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch: {}
jobs:
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
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- name: LinkCheck md files
uses: ConsenSys/docs-gha/linkcheck@main
with:
FILE_EXTENSION: md
MODIFIED_FILES_ONLY: no
slackNotification:
needs: [linkCheckMdx, linkCheckMd]
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: Linea docs nightly build - Failure
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
MSG_MINIMAL: true