-
Notifications
You must be signed in to change notification settings - Fork 57
48 lines (44 loc) · 1.27 KB
/
link-check-all.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
name: Checking all markdown and links site-wide
on:
# Automatic check weekly
schedule:
- cron: "0 9 * * 1"
# Manually triggered using GitHub's UI
workflow_dispatch:
jobs:
check-all:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check all links
uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
config-file: ".config/markdown.links.config.json"
use-quiet-mode: "yes"
use-verbose-mode: "yes"
on:
pull_request:
jobs:
check-links:
name: runner / linkspector
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run linkspector on all links
uses: umbrelladocs/action-linkspector@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-check
fail_on_error: true
config_file: .config/linkspector.yml
filter_mode: nofilter
- name: Run remark-lint on all files
uses: ./.config/remark/
with:
command: remark-all.sh
- name: Send GitHub Action trigger data to Slack workflow
id: slack
uses: slackapi/[email protected]
if: failure()
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}