Skip to content

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

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

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

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:
DOLLY_ALERTS_SLACK_WEBHOOK_URL:
required: true
jobs:
markdown:
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v3
- 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: |
{
"text": "Sjekk på døde URLer feilet, se <https://github.com/navikt/testnorge/actions/workflows/scheduled.scan.markdown.yml|workflow> for logg."
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.DOLLY_ALERTS_SLACK_WEBHOOK_URL }}