Skip to content

Commit

Permalink
Periodic broken link checker improved
Browse files Browse the repository at this point in the history
Periodic broken link checker improved
  • Loading branch information
ruzickap committed Jan 10, 2020
1 parent edcaf61 commit 93cb1e2
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 15 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/periodic-broken-link-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: periodic-broken-link-checks

on:
schedule:
- cron: '8 8 * * 2'
pull_request:
types: [opened, synchronize]
paths:
- .github/workflows/periodic-broken-link-checks.yml
push:
branches:
- master
paths:
- .github/workflows/periodic-broken-link-checks.yml

jobs:
broken-link-checker:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
with:
ref: gh-pages
- name: Broken link checker
env:
EXCLUDE: |
github.com/ruzickap/podinfo
mylabs.dev
run: |
if [ -s CNAME ]; then
export INPUT_URL="https://$(cat CNAME)"
else
export INPUT_URL="https://${GITHUB_REPOSITORY%/*}.github.io/${GITHUB_REPOSITORY##*/}"
fi
export INPUT_CMD_PARAMS="--verbose --buffer-size=8192 --concurrency=10 --exclude=($( echo ${EXCLUDE} | tr ' ' '|' ))"
wget -qO- https://raw.githubusercontent.com/ruzickap/action-my-broken-link-checker/v1/entrypoint.sh | bash
15 changes: 0 additions & 15 deletions .github/workflows/periodic-broken-links-check.yml

This file was deleted.

0 comments on commit 93cb1e2

Please sign in to comment.