-
Notifications
You must be signed in to change notification settings - Fork 18
37 lines (35 loc) · 1.08 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
---
name: Check for broken links
on:
schedule:
- cron: "1 13 * * 1"
workflow_dispatch:
# NOTE: entry below disabled due to github api limitations
# workflow_run:
# workflows: ["Deploy Jekyll site to Pages"]
# types:
# - completed
jobs:
check-links:
runs-on: ubuntu-latest
steps:
- name: install muffet
env:
URL: raviqqe/muffet
GREP_SCHEME: "linux_amd64"
TARGET_FOLDER: /home/.local/bin
run: |
sudo mkdir -p ${TARGET_FOLDER}
curl https://raw.githubusercontent.com/triole/ghwfe/master/sh/install_from_github.sh | bash
- name: run the test
env:
TARGET_FOLDER: /home/.local/bin
run: |
${TARGET_FOLDER}/muffet --rate-limit 4 -t 60 -b 16384 --skip-tls-verification \
--header "User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:129.0) Gecko/20100101 Firefox/129.0" \
-e "\.(mkv|mp4|mpg|pdf)$" \
-e "#" \
-e "rdmo.*.de" \
-e "twitter" \
-e "www.ub.uni-rostock.de" \
https://rdmorganiser.github.io