Markdown Link Check #140
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 }} |