Files
einundzwanzig.space/.github/workflows/linkcheck.yml
Dennis Reimann 15ad872d7d Linkcheck
2022-12-15 17:34:23 +01:00

28 lines
686 B
YAML

name: linkcheck
on:
# Run once per day
schedule:
- cron: '* * * * *'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16]
steps:
# Checkout and setup
- name: Checkout
uses: actions/checkout@v2
- name: Setup (Node.js ${{ matrix.node-version }})
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
# Install and build
- name: Install
run: npm ci
# Run linkcheck, propagate linkcheck failure through grep pipe
- name: Linkcheck
run: set -o pipefail; npm run linkcheck 2>/dev/null | grep "Getting links from\|BROKEN"