Skip to content

spider-check

spider-check #42

Workflow file for this run

name: spider-check
on:
# Once a week on Friday at 00:00
schedule:
- cron: '0 0 * * 5'
# Or manually
workflow_dispatch:
# Or when developing this workflow
push:
paths:
- .github/workflows/spider-check.yaml
pull_request:
paths:
- .github/workflows/spider-check.yaml
jobs:
spider-check:
env:
MY_SITE: https://api.jquery.com
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'jquery' }} # skip on forks
steps:
- name: Checkout hydra-link-checker
uses: actions/checkout@v3
with:
repository: jquery/hydra-link-checker
ref: v2.0.0
path: hydra
# Checkout the API repo as well to provide the config for hydra-link-checker
- name: Checkout API repo
uses: actions/checkout@v3
with:
path: api
- name: Run hydra-link-checker
run: python3 hydra/hydra.py "$MY_SITE" --config api/.github/configs/hydra-config.json