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
15 changes: 8 additions & 7 deletions .github/workflows/links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ name: Link Check

on:
pull_request:
branches: [main, v1]
branches: [main]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add v0 here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you still accept changes pushed to v0?

If so, I can add v0 to both the pull_request and push branch filters. If it is archived/frozen, keeping only main seems cleaner?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@georgeh0 may take a look?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, let me know :)

paths:
- "docs/**/*.md"
- "docs/**/*.mdx"
- ".lycheeignore"
- ".github/workflows/links.yml"
push:
branches: [main, v1]
branches: [main]
paths:
- "docs/**/*.md"
- "docs/**/*.mdx"
Expand All @@ -33,6 +33,7 @@ jobs:
fetch-depth: 1

- name: Restore lychee cache
if: github.event_name != 'schedule'
uses: actions/cache@v5
with:
path: .lycheecache
Expand All @@ -49,14 +50,14 @@ jobs:
jobSummary: true
output: ./lychee/out.md

- name: Fail on broken links
if: steps.lychee.outputs.exit_code == 1
run: exit 1

- name: Create issue from report
if: steps.lychee.outputs.exit_code == 1
if: steps.lychee.outputs.exit_code == '2' && github.event_name == 'schedule'
uses: peter-evans/create-issue-from-file@v6
with:
title: Link Checker Report
content-filepath: ./lychee/out.md
labels: report, automated issue

- name: Fail on broken links
if: steps.lychee.outputs.exit_code != '0'
run: exit 1
Loading