-
-
Notifications
You must be signed in to change notification settings - Fork 2
52 lines (47 loc) · 1.78 KB
/
link-check.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Check Markdown for Broken Links
# **What it does**: Checks all links in markdown files, apart from links to repo commits and issues.
# **Why we have it**: We want to know if any links break.
on:
push:
branches:
- main
paths:
- "**/*.md"
- "!CHANGELOG.md"
pull_request:
branches:
- main
paths:
- "**/*.md"
- "!CHANGELOG.md"
types: [opened, ready_for_review, reopened, synchronize]
schedule:
# ┌───────────── minute (0 - 59)
# │ ┌───────────── hour (0 - 23)
# │ │ ┌───────────── day of the month (1 - 31)
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
# │ │ │ │ │
# │ │ │ │ │
# │ │ │ │ │
# * * * * *
- cron: "30 1 1 * *"
# Allows this workflow to be run manually from the Actions tab
workflow_dispatch:
permissions:
contents: read
jobs:
link-check:
name: Link Check
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Run Linkinator
uses: JustinBeckwith/linkinator-action@v1
with:
paths: "**/*.md"
skip: "https://(?:www.|)github.com/Fdawgs/.*/(?:commit|issues|compare)/, http://0.0.0.0"