Regularly check links #75
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |