Skip to content

Commit e598037

Browse files
authored
ci: Add link checker
1 parent 2970807 commit e598037

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/Links.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Links
2+
3+
on:
4+
push:
5+
branches: ["source", "staging"]
6+
workflow_dispatch:
7+
8+
jobs:
9+
linkChecker:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
issues: write
13+
14+
steps:
15+
- uses: actions/checkout@v5
16+
17+
- name: Link Checker
18+
id: lychee
19+
uses: lycheeverse/lychee-action@v2
20+
with:
21+
fail: false
22+
23+
- name: Create Issue From File
24+
if: steps.lychee.outputs.exit_code != 0
25+
uses: peter-evans/create-issue-from-file@v5
26+
with:
27+
title: Link Checker Report
28+
content-filepath: ./lychee/out.md
29+
labels: report, automated issue

0 commit comments

Comments
 (0)