Skip to content

Resolve link checker to smoothly work with forked PRs #60

Resolve link checker to smoothly work with forked PRs

Resolve link checker to smoothly work with forked PRs #60

Workflow file for this run

name: Check links & references
permissions:
contents: read
on:
push:
branches: [main, develop]
pull_request:
schedule:
# Run once a week on Sundays
- cron: "0 9 * * 0"
concurrency:
group: ci-check-links-${{ github.ref }}
cancel-in-progress: true
jobs:
links-check:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: πŸ”— Link Checker
uses: lycheeverse/lychee-action@v2
with:
lycheeVersion: v0.22.0
args: |
--config .github/lychee.toml
${{ secrets.UNIVERSE_RATELIMIT_BYPASS_KEY != '' && format('--header "x-ratelimit-bypass: {0}"', secrets.UNIVERSE_RATELIMIT_BYPASS_KEY) || '--exclude "https://universe.roboflow.com/.*"' }}
'./**/*.md'
# TODO: enable also following file types
# './**/*.toml'
# './**/*.yml'
# './**/*.yaml'
# './**/*.py'
fail: true