Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 14 additions & 5 deletions .github/workflows/links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- cron: "00 18 * * *"
push:
branches:
- main
- main
pull_request:
branches:
- main
Expand All @@ -19,17 +19,26 @@ jobs:
steps:
- uses: actions/checkout@v5

- name: Link Checker
id: lychee
- name: Link Checker (CI strict)
if: github.event_name != 'schedule'
id: lychee_strict
uses: lycheeverse/lychee-action@v2
with:
args: --verbose --no-progress --root-dir ${{ github.workspace }} --exclude '\$\{slug\}' --exclude '%7Bslug%7D' 'web/**/*.jsx' './**/*.md' './quality-tools/**/*.json'
fail: true

- name: Link Checker (scheduled report)
if: github.event_name == 'schedule'
id: lychee_schedule
uses: lycheeverse/lychee-action@v2
with:
args: --verbose --no-progress --root-dir ${{ github.workspace }} --exclude '\$\{slug\}' --exclude '%7Bslug%7D' 'web/**/*.jsx' './**/*.md' './quality-tools/**/*.json'
fail: false

- name: Create Issue From File
if: steps.lychee.outputs.exit_code != 0
if: github.event_name == 'schedule' && steps.lychee_schedule.outputs.exit_code != 0
uses: peter-evans/create-issue-from-file@v5
with:
title: Link Checker Report
content-filepath: ./lychee/out.md
labels: report, automated issue

Loading