Skip to content

Regularly check links #71

Regularly check links

Regularly check links #71

Workflow file for this run

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