@@ -24,44 +24,21 @@ jobs:
2424 with :
2525 version : latest
2626
27- - name : Check out master branch
28- run : git checkout master
29-
30- - name : Install dependencies for master
31- run : pnpm install --frozen-lockfile
32-
33- - name : Build site from master
34- run : pnpm build
35-
36- - name : Dump all links from master
37- id : dump_links_from_master
38- uses : lycheeverse/lychee-action@v2
39- with :
40- args : ' --dump --root-dir ${{ github.workspace }}/dist --exclude-all-private dist'
41- output : ./links-master.txt
42-
43- - name : Stash untracked files
44- run : git stash push --include-untracked
45-
46- - name : Check out feature branch
47- run : git fetch origin ${{ github.ref }} && git checkout FETCH_HEAD
48-
49- - name : Apply stashed changes
50- run : git stash pop || true
51-
5227 - name : Install dependencies for feature branch
5328 run : pnpm install --frozen-lockfile
5429
5530 - name : Build site from feature branch
5631 run : pnpm build
5732
58- - name : Append links-master.txt to .lycheeignore
59- run : cat links-master.txt >> .lycheeignore
60-
61- - name : Check links in PR changes
33+ - name : Check links
6234 uses : lycheeverse/lychee-action@v2
6335 with :
64- args : ' --root-dir ${{ github.workspace }}/dist --exclude-all-private dist'
36+ args : |
37+ --root-dir $PWD/dist
38+ --exclude-all-private
39+ --remap 'https://lychee\.cli\.rs/(.*)/ file://'$PWD'/dist/$1/index.html'
40+ --index-files index.html
41+ dist
6542 fail : true
6643
6744 - name : Suggestions
0 commit comments