-
Notifications
You must be signed in to change notification settings - Fork 29
57 lines (51 loc) · 1.66 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
57
# This workflow checks the links in plaintext and HTML files
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
with:
path: repository
- name: Checkout the website
uses: actions/checkout@v3
with:
ref: gh-pages
path: website
- name: Link Checker
uses: lycheeverse/[email protected]
with:
# 429: Too many requests
args: >
--accept 429
--exclude-mail
--exclude https://seiscode.iris.washington.edu/
--exclude http://www.kyoshin.bosai.go.jp/
--exclude http://www.hinet.bosai.go.jp/
--exclude https://www.fdsn.org/webservices/
--exclude http://www.vnet.bosai.go.jp/
--exclude http://www.fnet.bosai.go.jp/
--exclude https://members.elsi.jp/~george/gh.html
--exclude http://www.seisdmc.ac.cn/
--exclude https://l2a.ucsd.edu/
--exclude [email protected]
--exclude https://github.com/seisman/SAC_Docs_zh/blob/master/source/genindex
--verbose
repository/README.md
website/**/*.html
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create Issue From File
uses: peter-evans/create-issue-from-file@v4
if: github.event_name != 'pull_request'
with:
title: Link Checker Report
content-filepath: ./lychee/out.md