@@ -151,13 +151,10 @@ jobs:
151
151
name : github-pages
152
152
path : ./public
153
153
154
- - name : List downloaded files # Debugging step
155
- run : ls -R public
156
-
157
154
- name : Restore lychee cache
158
155
uses : actions/cache@v4
159
156
with :
160
- path : ./public/ .lycheecache # The cache file will be inside the 'public' directory
157
+ path : ./.lycheecache
161
158
key : lychee-cache-${{ github.ref }}
162
159
restore-keys : |
163
160
lychee-cache-
@@ -166,8 +163,7 @@ jobs:
166
163
id : lychee
167
164
uses : lycheeverse/lychee-action@v2
168
165
with :
169
- # Run lychee from inside the 'public' directory
170
- working-directory : ./public
166
+ # Check all HTML files in the downloaded public directory
171
167
args : >-
172
168
--cache
173
169
--max-cache-age 1d
@@ -177,10 +173,9 @@ jobs:
177
173
--exclude 'https://www.linkedin.com/.*'
178
174
--exclude 'https://twitter.com/intent/.*'
179
175
--exclude 'https://github.com/open-neuromorphic/open-neuromorphic.github.io/issues/new/choose'
180
- './**/*.html'
181
- fail : false
176
+ './public/ **/*.html'
177
+ fail : false # Do not fail the workflow, create an issue instead
182
178
job_summary : true
183
- # This output path is now relative to the working-directory
184
179
output : ./lychee-out.md
185
180
env :
186
181
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
@@ -190,8 +185,7 @@ jobs:
190
185
uses : peter-evans/create-issue-from-file@v5
191
186
with :
192
187
title : Link Checker Report
193
- # The report is inside the 'public' directory
194
- content-filepath : ./public/lychee-out.md
188
+ content-filepath : ./lychee-out.md
195
189
labels : report, automated, broken-links
196
190
197
191
deploy :
0 commit comments