-
-
Notifications
You must be signed in to change notification settings - Fork 30
39 lines (35 loc) · 1.28 KB
/
link-checker.yml
File metadata and controls
39 lines (35 loc) · 1.28 KB
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
name: "Link Checker"
on: # yamllint disable-line rule:truthy
workflow_dispatch:
schedule:
- cron: "21 7 * * *"
jobs:
link-checker:
name: Link Checker
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Link Checker
uses: lycheeverse/lychee-action@f613c4a64e50d792e0b31ec34bbcbba12263c6a6 # v2.3.0
id: lychee
with:
args: "--exclude-path './docs/_includes/nav.html' --exclude-path './docs/_layouts/default.html' --verbose --no-progress './**/*.md'"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- name: Find Link Checker Issue
id: link-checker-issue
uses: micalevisk/last-issue-action@0d40124cc99ac8601c2516007f0c98ef3d27537b # v2
with:
state: open
labels: |
link-checker
- name: Update Issue
uses: peter-evans/create-issue-from-file@e8ef132d6df98ed982188e460ebb3b5d4ef3a9cd # v4
with:
title: Broken links detected in docs 🔗
issue-number: "${{ steps.link-checker-issue.outputs.issue-number }}"
content-filepath: ./lychee/out.md
token: "${{ secrets.GITHUB_TOKEN }}"
labels: |
link-checker