Check links #918
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: 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 }} |