Skip to content

Commit dba886c

Browse files
ci: run check-links after deploy completes
Change check-links to a reusable workflow called from deploy.yml after the deploy job, preventing false 404s on new pages.
1 parent cf912f8 commit dba886c

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/check-links.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
name: Check Links
22

33
on:
4-
push:
5-
branches: [main]
6-
paths:
7-
- '**.md'
4+
workflow_call:
85
pull_request:
96
branches: [main]
107
paths:

.github/workflows/deploy.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,9 @@ jobs:
5151
- name: Deploy to GitHub Pages
5252
id: deployment
5353
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4
54+
55+
check-links:
56+
needs: deploy
57+
uses: ./.github/workflows/check-links.yml
58+
permissions:
59+
contents: read

0 commit comments

Comments
 (0)