-
Notifications
You must be signed in to change notification settings - Fork 363
56 lines (50 loc) · 1.8 KB
/
check-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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# This workflow checks the links in plaintext files in the repository
name: Check Links
on:
# Uncomment the 'pull_request' line below to trigger the workflow in PR
# pull_request:
# Schedule runs on 12 noon every Sunday
schedule:
- cron: '0 12 * * 0'
jobs:
check_links:
name: Check Links
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v3.6.0
- name: Link Checker
uses: lycheeverse/lychee-action@v1.8.0
with:
# 429: Too many requests
args: >
--accept 429
--exclude ^ftp://
--exclude ^https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$
--exclude ^https://download1.rpmfusion.org/free/el/rpmfusion-free-release-$
--exclude ^http://maps.google.com/mapfiles/kml/$
--exclude ^http://aa.usno.navy.mil/faq/docs/lawyers.php$
--exclude ^uhttp://my.server.com/images$
--exclude ^-W@weight.png$
--exclude ^http://topex.ucsd.edu/marine_grav/mar_grav.html
--exclude ^https://topex.ucsd.edu/sandwell/
--exclude ^http://topex.ucsd.edu
--exclude ^https://doi.org
--exclude ^https://www.researchgate.net/
--exclude ^http://www.eumetsat.int
--exclude ^http://nsis.sourceforge.io
--exclude ^https://www.ethnologue.com
--verbose
**/*.rst
**/*.rst_
**/*.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Get current date
id: date
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
- name: Create Issue From File
uses: peter-evans/create-issue-from-file@v4
with:
title: Link Checker Report on ${{ steps.date.outputs.date }}
content-filepath: ./lychee/out.md