Skip to content

9da0573ef39db9b5b9efdc77652ae869c5e3d857 #388

9da0573ef39db9b5b9efdc77652ae869c5e3d857

9da0573ef39db9b5b9efdc77652ae869c5e3d857 #388

name: Lint Markdown Links Daily
run-name: ${{github.sha}}
on:
schedule:
# Run everyday at 5:00 AM
- cron: "0 5 * * *"
workflow_dispatch:
jobs:
markdown-link-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: gaurav-nelson/github-action-markdown-link-check@d53a906aa6b22b8979d33bc86170567e619495ec
with:
use-quiet-mode: "yes"
use-verbose-mode: "yes"
config-file: ".mlc.config.json"
folder-path: "."
max-depth: -1
- name: Send Notification to Slack
if: ${{ failure() }}
uses: slackapi/slack-github-action@e28cf165c92ffef168d23c5c9000cffc8a25e117
with:
payload: |
{
"text": "Lint Markdown Links Daily build result: FAILED\nDetails: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Lint Markdown Links Daily build result: FAILED\nDetails: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK