Skip to content

Broken Links Checker #52

Broken Links Checker

Broken Links Checker #52

Workflow file for this run

name: Broken Links Checker
on:
# Runs every Monday at 12:00 UTC
schedule:
- cron: "0 12 * * 1"
workflow_dispatch:
permissions:
issues: write
contents: read
env:
WEBSITE_URL: "https://fipguide.org/de/"
ISSUE_TEMPLATE: ".github/workflows/check-broken-links.md"
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Run Broken Links Checker
run: |
npx broken-link-checker $WEBSITE_URL --ordered --recursive \
--user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36" \
--exclude "intercity.pl" \
--exclude "www.belgiantrain.be" \
--exclude "www.vagonweb.cz" \
--exclude "www.sncf-voyageurs.com" \
--exclude "community.sbb.ch" \
--exclude "www.bsb.de" \
--exclude "www.brfares.com" \
--exclude "iwsteamrailway.co.uk" \
--exclude "talyllyn.co.uk" \
--exclude "railwaymuseum.org.uk" \
--exclude "locomotion.org.uk" \
--exclude "www.dsb.dk" \
--exclude "garesetconnexions.sncf" \
--exclude "www.transilien.com" \
--exclude "www.ter.sncf.com" \
--exclude "www.fmnf.pt" \
--exclude "www.linkedin.com" \
--exclude "www.bdz.bg" \
--exclude "www.superfast.com" \
--exclude "www.bluestarferries.com" \
--exclude "www.lner.co.uk" \
--exclude "www.greateranglia.co.uk" \
--exclude "www.crosscountrytrains.co.uk" \
--exclude "www.railtourguide.com" \
--exclude "www.translink.co.uk" \
--exclude "www.vy.no" \
--exclude "www.sj.no" \
--exclude "www.go-aheadnordic.no" \
--exclude "www.github.com" \
--exclude "www.trenitalia.fr"
- uses: actions/checkout@v3
if: failure()
- name: Reopen issue and add comment
if: failure()
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh issue reopen 1001 || true
gh issue comment 1001 --body-file $ISSUE_TEMPLATE