Files
einundzwanzig.space/.github/workflows/linkcheck.yml
Dennis Reimann 3e10a1bb4f Update actions
2022-12-16 07:22:35 +01:00

25 lines
571 B
YAML

name: linkcheck
on:
# Run once per day
schedule:
- cron: '21 1 * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
# Checkout and setup
- name: Checkout
uses: actions/checkout@v3
- name: Setup
uses: actions/setup-node@v3
with:
node-version: 16
# 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"