- Fix import order (ast before asyncio) - Remove NameError from exception handling (ast.literal_eval doesn't raise it) - Add .lycheeignore to exclude intermittently unavailable star-history API - Update link-check workflow to exclude star-history API and accept 503 status codes
20 lines
568 B
YAML
20 lines
568 B
YAML
name: Link Check
|
|
|
|
on:
|
|
push:
|
|
branches: [ main, master ]
|
|
pull_request:
|
|
schedule:
|
|
- cron: "0 3 * * 1"
|
|
|
|
jobs:
|
|
link-check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: lycheeverse/lychee-action@v2
|
|
with:
|
|
args: --no-progress --insecure --user-agent 'curl/7.68.0' --exclude '.*api\.star-history\.com.*' --accept 200,201,202,203,204,205,206,207,208,226,300,301,302,303,304,305,306,307,308,503 README.md docs/ apps/ examples/ benchmarks/
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|