Skip to content

Commit 517876d

Browse files
louis-preclaude
andcommitted
ci: Add validate-paths step to generate workflow
Runs the SUMMARY.md path validator after codegen, before link validation. Ensures file paths stay in sync with their section headings. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent a92682e commit 517876d

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/generate.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,20 @@ jobs:
6666
commit_user_name: ${{ secrets.GIT_USER_NAME }}
6767
commit_user_email: ${{ secrets.GIT_USER_EMAIL }}
6868
commit_author: ${{ secrets.GIT_USER_NAME }} <${{ secrets.GIT_USER_EMAIL }}>
69+
validate-paths:
70+
name: Validate paths
71+
needs: commit
72+
runs-on: ubuntu-latest
73+
timeout-minutes: 30
74+
steps:
75+
- name: Checkout
76+
uses: actions/checkout@v4
77+
with:
78+
ref: ${{ github.head_ref }}
79+
- name: Setup
80+
uses: ./.github/actions/setup
81+
- name: Validate SUMMARY.md paths
82+
run: npm run validate-paths
6983
validate-links:
7084
name: Validate links
7185
needs: commit

0 commit comments

Comments
 (0)