-
Notifications
You must be signed in to change notification settings - Fork 2
34 lines (32 loc) · 1.11 KB
/
markdown-link-checker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Markdown Link Checker
on:
push:
branches:
- main
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 3hrs
if: ${{ steps.markdownlinkcheck.outcome == 'failure' && steps.markdownlinkcheck.conclusion == 'success' }}
uses: juliangruber/sleep-action@v1
with:
time: 10800s #Sleep for 3hrs. In case link host is offline for maintenance.
- 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'