This repository has been archived by the owner on Apr 1, 2024. It is now read-only.
Build: ruby 3.0, typesense/docsearch-scraper 0.9, github actions v4 #222
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | |
# Site address to crawl | |
# | |
# Example: | |
# - https://example.org | |
# - https://example.github.io/ | |
# - https://example.github.io/my-project/ | |
MY_SITE: https://qunitjs.com | |
runs-on: ubuntu-latest | |
if: ${{ github.repository_owner == 'qunitjs' }} # skip on forks | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
repository: jquery/hydra-link-checker | |
ref: v2.0.0 | |
- name: Run hydra-link-checker | |
run: python3 hydra.py "$MY_SITE" |