This repository has been archived by the owner on Jul 2, 2024. It is now read-only.
periodic-broken-link-checks #218
Workflow file for this run
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: 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 |