Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

periodic-broken-link-checks #221

periodic-broken-link-checks

periodic-broken-link-checks #221

name: periodic-broken-link-checks
on:
workflow_dispatch:
schedule:
- cron: '8 8 * * 2'
jobs:
broken-link-checker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: gh-pages
- name: Broken link checker
env:
EXCLUDE: |
github.com/ruzickap/k8s-flux-repository
myexample.dev
mylabs.dev
run: |
if [ -s CNAME ]; then
INPUT_URL="https://$(cat CNAME)"
else
INPUT_URL="https://${GITHUB_REPOSITORY%/*}.github.io/${GITHUB_REPOSITORY##*/}"
fi
export INPUT_URL
INPUT_CMD_PARAMS="--buffer-size=8192 --max-connections=10 --color=always --exclude=($( echo "${EXCLUDE}" | tr '\n' '|' ))"
export INPUT_CMD_PARAMS
wget -qO- https://raw.githubusercontent.com/ruzickap/action-my-broken-link-checker/v2/entrypoint.sh | bash