-
Notifications
You must be signed in to change notification settings - Fork 32
28 lines (26 loc) · 1008 Bytes
/
checklinks.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
name: Regularly check links
on:
schedule:
# Runs "At 08:30 on every day-of-week from Monday through Friday." (see https://crontab.guru)
- cron: '40 8 * * 1-5'
jobs:
build:
name: Check links
runs-on: ubuntu-latest
steps:
- name: Install linkchecker
run: sudo apt install linkchecker
- name: Run linkchecker
# We ignore www.imy.se due to the following error:
# curl: (35) error:0A000152:SSL routines::unsafe legacy renegotiation disabled
# We ignore www.socialstyrelsen.se due to the following error:
# Error: ReadTimeout: HTTPSConnectionPool(host='www.socialstyrelsen.se', port=443): Read timed out. (read timeout=60)
run: |
linkchecker \
--no-robots \
--check-extern \
--ignore-url '\/\/localhost' \
--ignore-url '\/\/127.0.0.1' \
--ignore-url '\/\/www.imy.se' \
--ignore-url '\/\/www.socialstyrelsen.se' \
https://elastisys.io