Skip to content

Commit d20806d

Browse files
committed
Add external link checker to Actions
1 parent bfc9db6 commit d20806d

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Links
2+
3+
on:
4+
# This workflow requires pull_request and won't work with pull_request_target
5+
# due to github permissions
6+
pull_request:
7+
types:
8+
- opened
9+
- reopened
10+
- synchronize
11+
- closed
12+
# Uncomment the following lines to have the cronjob running daily
13+
#repository_dispatch:
14+
#workflow_dispatch:
15+
#schedule:
16+
#- cron: "00 18 * * *"
17+
18+
jobs:
19+
linkChecker:
20+
runs-on: ubuntu-latest
21+
permissions:
22+
issues: write # required for peter-evans/create-issue-from-file
23+
steps:
24+
- uses: actions/checkout@v4
25+
26+
- name: Link Checker
27+
id: lychee
28+
uses: lycheeverse/lychee-action@v2
29+
with:
30+
fail: true
31+
32+
# Uncomment this if you want issues to be created for every dead link
33+
#- name: Create Issue From File
34+
#if: steps.lychee.outputs.exit_code != 0
35+
#uses: peter-evans/create-issue-from-file@v5
36+
#with:
37+
#title: Link Checker Report
38+
#content-filepath: ./lychee/out.md
39+
#labels: report, automated issue

0 commit comments

Comments
 (0)