-
Notifications
You must be signed in to change notification settings - Fork 783
34 lines (32 loc) · 897 Bytes
/
spider-check.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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:
if: ${{ github.repository_owner == 'qunitjs' }} # skip on forks
runs-on: ubuntu-latest
env:
# Site address to crawl
#
# Example:
# - https://example.org
# - https://example.github.io/
# - https://example.github.io/my-project/
MY_SITE: https://qunitjs.com
steps:
- uses: actions/checkout@v4
- name: Run hydra-link-checker
run: |
curl -O https://raw.githubusercontent.com/jquery/hydra-link-checker/v2.0.0/hydra.py
python3 hydra.py "$MY_SITE" --config build/hydra-config.json