-
Notifications
You must be signed in to change notification settings - Fork 260
32 lines (30 loc) · 923 Bytes
/
spider-check.yaml
File metadata and controls
32 lines (30 loc) · 923 Bytes
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
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
- .github/configs/hydra-config.json
pull_request:
paths:
- .github/workflows/spider-check.yaml
- .github/configs/hydra-config.json
jobs:
spider-check:
if: ${{ github.repository_owner == 'jquery' }} # skip on forks
runs-on: ubuntu-latest
env:
# Site address to crawl
MY_SITE: https://api.jquery.com
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- 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 .github/configs/hydra-config.json