Skip to content

.github/workflows/scheduled.scan.markdown.yml #85

.github/workflows/scheduled.scan.markdown.yml

.github/workflows/scheduled.scan.markdown.yml #85

on:
schedule:
- cron: "0 9 * * MON"
workflow_dispatch:
inputs:
working-directory:
type: string
description: "Directory to scan, e.g. apps/dolly-backend. Defaults to whole repo."
default: "."
required: true
secrets:
SLACK_DEAD_URLS_WEBHOOK_URL:
required: true
jobs:
markdown:
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Markdown"
uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
folder-path: ${{ inputs.working-directory }}
config-file: .github/workflows/scheduled.scan.markdown.json
use-quiet-mode: yes
- name: "Slack"
if: ${{ failure() }}
uses: slackapi/[email protected]
with:
payload: |
{
"url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_DEAD_URLS_WEBHOOK_URL }}