Skip to content

e3d61a9956f0d9ea421158613f813d4fd5f59cc8 #48

e3d61a9956f0d9ea421158613f813d4fd5f59cc8

e3d61a9956f0d9ea421158613f813d4fd5f59cc8 #48

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@v1
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