Skip to content

Check links

Check links #912

Workflow file for this run

name: Check links
on:
schedule:
# Run everyday at 7:00 AM (See https://pubs.opengroup.org/onlinepubs/9699919799/utilities/crontab.html#tag_20_25_07)
- cron: "0 7 * * 1-5"
jobs:
markdown-link-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: peter-evans/link-checker@v1
id: lc
with:
# Only check external links
args: -v -x "^[^:]+$|^https://uk\.farnell\.com/|^https://www\.kitronik\.co\.uk/pdf/bbc_microbit_mechanical_datasheet_V2\.pdf|^https://www\.lancaster\.ac\.uk/news/articles/2016/lancaster-university-helps-bbc-get-kids-coding/$" -d . -t 30 -r *
- name: Fail if there were link errors
run: exit ${{ steps.lc.outputs.exit_code }}