Skip to content

Commit df85434

Browse files
authored
feat: add PR link checking workflow
1 parent e8dbc45 commit df85434

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: PR Links
2+
3+
on:
4+
pull_request:
5+
branches: [redesign]
6+
workflow_dispatch:
7+
8+
jobs:
9+
linkChecker:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v6
13+
with:
14+
persist-credentials: false
15+
16+
- name: Build site
17+
uses: withastro/action@15aa0a5a1e067940253e3b259413ab2ae882a740 # v5.2.0
18+
19+
- name: Check links
20+
uses: lycheeverse/lychee-action@a8c4c7cb88f0c7386610c35eb25108e448569cb0 # v2.7.0
21+
with:
22+
# Remap live URLs to build directory because the links are potentially not live (not yet on master)
23+
args: |
24+
--root-dir $PWD/dist
25+
dist/
26+
fail: true

0 commit comments

Comments
 (0)