Skip to content

feat(i18n): wire the new claude-platform-101 Academy course (11 locales) #79

feat(i18n): wire the new claude-platform-101 Academy course (11 locales)

feat(i18n): wire the new claude-platform-101 Academy course (11 locales) #79

Workflow file for this run

name: Docs sync check
# Previously this auto-committed generated docs to `main`, but `main` is
# protected (PR required), so the push was always rejected (GH013) and the
# workflow failed on every release. Instead, verify at PR time that the
# generated docs are already committed — the release PR must include the
# `npm run docs` output. No push to a protected branch.
on:
pull_request:
paths:
- 'manifest.json'
- 'src/lib/constants.js'
- 'README.md'
- 'docs/index.html'
- 'src/data/**'
workflow_dispatch:
permissions:
contents: read
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version-file: '.nvmrc'
- run: node scripts/generate-docs.js
- name: Verify generated docs are committed
run: |
if ! git diff --quiet; then
echo "::error::Generated docs are stale. Run 'npm run docs' and commit README.md / docs/index.html / src/data/* before merging."
git --no-pager diff --stat
exit 1
fi