Skip to content

add a 404 url checker script #1

add a 404 url checker script

add a 404 url checker script #1

---
name: Check Redirect 404s
on:
push:
workflow_dispatch:
inputs:
redirect_file:
description: 'Redirect file to check'
required: true
type: string
default: '.github/scripts/polkadot_com_redirects'
schedule:
- cron: '0 14 * * 1' # Every Monday at 2pm UTC
jobs:
check-redirects:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run redirect checker
run: .github/scripts/find_redirect_404s.sh ${REDIRECT_FILE}
env:
REDIRECT_FILE: ${{ github.event.inputs.redirect_file || '.github/scripts/polkadot_com_redirects' }}