Markdown Link Checker #579
This file contains 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 Checker | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: [opened] | |
schedule: | |
# Run everyday at 9:00 AM (See https://pubs.opengroup.org/onlinepubs/9699919799/utilities/crontab.html#tag_20_25_07) | |
- cron: "0 9 * * *" | |
workflow_dispatch: | |
jobs: | |
markdown-link-checker: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: markdown-link-check | |
id: markdownlinkcheck | |
continue-on-error: true | |
uses: gaurav-nelson/github-action-markdown-link-check@v1 | |
with: | |
use-quiet-mode: 'yes' | |
use-verbose-mode: 'yes' | |
- name: Sleep for 30mins | |
if: ${{ steps.markdownlinkcheck.outcome == 'failure' && steps.markdownlinkcheck.conclusion == 'success' }} | |
uses: juliangruber/sleep-action@v1 | |
with: | |
time: 1800s #sleep for 30mins | |
- name: markdown-link-check-retry | |
if: ${{ steps.markdownlinkcheck.outcome == 'failure' && steps.markdownlinkcheck.conclusion == 'success' }} | |
uses: gaurav-nelson/github-action-markdown-link-check@v1 | |
with: | |
use-quiet-mode: 'yes' | |
use-verbose-mode: 'yes' |