Skip to content

Markdown Link Check #140

Markdown Link Check

Markdown Link Check #140

name: Markdown Link Check
on:
schedule:
- cron: '30 1 * * 1' # 毎週月曜日の1:30(UTC) -> 毎週月曜日の10:30(JST)
workflow_dispatch:
jobs:
markdown-link-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: tcort/github-action-markdown-link-check@v1
with:
use-quiet-mode: 'yes'
folder-path: 'docs, rubocop'
file-path: './README.md'
- name: Notify Slack
if: ${{ failure() }}
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
text: ":x: Markdown link check failed. See the details at ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
author_name: Link Checker
fields: repo,commit,action,eventName,ref,workflow,job,took
env: |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}