-
Notifications
You must be signed in to change notification settings - Fork 272
38 lines (33 loc) · 1.09 KB
/
validate-external-links.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
name: External link validation
on:
workflow_dispatch:
schedule:
- cron: 0 11 * * *
jobs:
linkvalidator:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- uses: actions/checkout@v4
- name: lychee Link Checker
id: lychee
uses: lycheeverse/[email protected]
with:
fail: false
args: --accept=200,403,429 -s "https" "**/*.html" "**/*.md" "**/*.txt" "**/*.json" --exclude "https://github.com/\[your*" --exclude "https://localhost:9200" --exclude-mail
- name: Find Link Checker Issue
uses: micalevisk/last-issue-action@v2
id: known-issue
with:
state: open
labels: |
link-checker
- name: Create Issue From File
if: steps.lychee.outputs.exit_code != 0 && steps.known-issue.outputs.has-found != 'true'
uses: peter-evans/create-issue-from-file@v5
with:
issue-number: "${{ steps.known-issue.outputs.issue-number }}"
title: Link Checker Report
content-filepath: ./lychee/out.md
labels: link-checker