Chore CI by adding checks for links and references (#2113)
* Chore CI by adding checks for links and references * Potential fix for code scanning alert no. 6: Workflow does not contain permissions * Fix markdown image formatting in metrics documentation * Update all `docs` links to use absolute URLs and fix broken references in documentation and workflows. * Fix broken `albumentations` links in dataset processing documentation * lycheeVersion: v0.22.0 * Refactor CI link check workflow to use lychee config file for cleaner argument management * add TODOs for future file type support * Fix header formatting for example plots across metric files --------- Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
co-authored by
Copilot Autofix powered by AI
Copilot
parent
2b1abb1f5b
commit
a5b51a11e5
@@ -0,0 +1,37 @@
|
||||
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
|
||||
--header "x-ratelimit-bypass: ${{ secrets.UNIVERSE_RATELIMIT_BYPASS_KEY }}"
|
||||
'./**/*.md'
|
||||
# TODO: enable also following file types
|
||||
# './**/*.toml'
|
||||
# './**/*.yml'
|
||||
# './**/*.yaml'
|
||||
# './**/*.py'
|
||||
fail: true
|
||||
Reference in New Issue
Block a user