mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig.space.git
synced 2025-12-14 00:36:48 +00:00
25 lines
571 B
YAML
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"
|