Skip to content

Commit 3bc3966

Browse files
committed
Revert "chore: workflow - Run link checker on commit message trigger [link-check]"
This reverts commit f176d39.
1 parent 0daa66c commit 3bc3966

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -151,13 +151,10 @@ jobs:
151151
name: github-pages
152152
path: ./public
153153

154-
- name: List downloaded files # Debugging step
155-
run: ls -R public
156-
157154
- name: Restore lychee cache
158155
uses: actions/cache@v4
159156
with:
160-
path: ./public/.lycheecache # The cache file will be inside the 'public' directory
157+
path: ./.lycheecache
161158
key: lychee-cache-${{ github.ref }}
162159
restore-keys: |
163160
lychee-cache-
@@ -166,8 +163,7 @@ jobs:
166163
id: lychee
167164
uses: lycheeverse/lychee-action@v2
168165
with:
169-
# Run lychee from inside the 'public' directory
170-
working-directory: ./public
166+
# Check all HTML files in the downloaded public directory
171167
args: >-
172168
--cache
173169
--max-cache-age 1d
@@ -177,10 +173,9 @@ jobs:
177173
--exclude 'https://www.linkedin.com/.*'
178174
--exclude 'https://twitter.com/intent/.*'
179175
--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
182178
job_summary: true
183-
# This output path is now relative to the working-directory
184179
output: ./lychee-out.md
185180
env:
186181
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -190,8 +185,7 @@ jobs:
190185
uses: peter-evans/create-issue-from-file@v5
191186
with:
192187
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
195189
labels: report, automated, broken-links
196190

197191
deploy:

0 commit comments

Comments
 (0)