Skip to content

Clone any website with one command using AI coding agents

ci: harden generated file sync check

JCodesMore751e327f3a68
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index db3e2586..e5fc30b7 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -15,53 +15,39 @@ jobs:
steps:
- name: Checkout
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
- name: Setup Node.js
- uses: actions/setup-node@v4
+ uses: actions/setup-node@v7
with:
node-version: 24
cache: npm
- - name: Install dependencies
- run: npm ci
-
- - name: Lint
- run: npm run lint
-
- - name: Type check
- run: npm run typecheck
-
- - name: Build
- run: npm run build
-
- sync:
- name: Generated files in sync
- runs-on: ubuntu-latest
- timeout-minutes: 5
-
- steps:
- - name: Checkout
- uses: actions/checkout@v4
-
- - name: Setup Node.js
- uses: actions/setup-node@v4
- with:
- node-version: 24
-
- - name: Regenerate agent rules and platform skills
+ - name: Verify generated files are in sync
+ shell: bash
run: |
bash scripts/sync-agent-rules.sh
node scripts/sync-skills.mjs
- - name: Verify generated files are committed
- run: |
- if ! git diff --quiet; then
+ if [[ -n "$(git status --porcelain=v1 --untracked-files=all)" ]]; then
echo "::error::Generated files are out of sync with their sources (AGENTS.md / SKILL.md)."
echo "Run the sync scripts locally and commit the result:"
echo " bash scripts/sync-agent-rules.sh"
echo " node scripts/sync-skills.mjs"
+ git status --short
git diff --stat
exit 1
fi
echo "All generated files are in sync with their sources."
+
+ - name: Install dependencies
+ run: npm ci
+
+ - name: Lint
+ run: npm run lint
+
+ - name: Type check
+ run: npm run typecheck
+
+ - name: Build
+ run: npm run build