Skip to content

Commit 0daa66c

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

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -135,14 +135,7 @@ jobs:
135135
echo "robots.txt creation skipped for production URL."
136136
fi
137137
138-
- name: Upload artifact for link checker
139-
if: github.event_name == 'pull_request' || contains(github.event.head_commit.message, '[link-check]')
140-
uses: actions/upload-artifact@v4
141-
with:
142-
name: built-site-for-lychee
143-
path: public/
144-
145-
- name: Upload artifact for deployment
138+
- name: Upload artifact
146139
uses: actions/upload-pages-artifact@v3.0.1
147140
with:
148141
path: ./public
@@ -152,11 +145,11 @@ jobs:
152145
needs: build
153146
if: github.event_name == 'pull_request' || contains(github.event.head_commit.message, '[link-check]')
154147
steps:
155-
- name: Download built site artifact
148+
- name: Download artifact
156149
uses: actions/download-artifact@v4
157150
with:
158-
name: built-site-for-lychee
159-
path: public
151+
name: github-pages
152+
path: ./public
160153

161154
- name: List downloaded files # Debugging step
162155
run: ls -R public
@@ -173,7 +166,8 @@ jobs:
173166
id: lychee
174167
uses: lycheeverse/lychee-action@v2
175168
with:
176-
workingDirectory: ./public
169+
# Run lychee from inside the 'public' directory
170+
working-directory: ./public
177171
args: >-
178172
--cache
179173
--max-cache-age 1d
@@ -185,7 +179,8 @@ jobs:
185179
--exclude 'https://github.com/open-neuromorphic/open-neuromorphic.github.io/issues/new/choose'
186180
'./**/*.html'
187181
fail: false
188-
jobSummary: true
182+
job_summary: true
183+
# This output path is now relative to the working-directory
189184
output: ./lychee-out.md
190185
env:
191186
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -195,6 +190,7 @@ jobs:
195190
uses: peter-evans/create-issue-from-file@v5
196191
with:
197192
title: Link Checker Report
193+
# The report is inside the 'public' directory
198194
content-filepath: ./public/lychee-out.md
199195
labels: report, automated, broken-links
200196

@@ -204,6 +200,7 @@ jobs:
204200
url: ${{ steps.deployment.outputs.page_url }}
205201
runs-on: ubuntu-24.04
206202
needs: build
203+
# Only deploy on pushes to the main branch, not on pull requests
207204
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/cache-images')
208205
steps:
209206
- name: Deploy to GitHub Pages

0 commit comments

Comments
 (0)