From 4c3b30d5c3d779b94c54d6f134462000649a7d2d Mon Sep 17 00:00:00 2001 From: Seungpyo Hong Date: Tue, 23 Jun 2026 10:28:30 +0900 Subject: [PATCH] fix(verify-status): stage before diff so a new status.json is committed git diff ignores untracked files, so the first run created status.json but skipped the commit. Stage first, then check git diff --cached. Refs #1 --- .github/workflows/verify-status.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/verify-status.yml b/.github/workflows/verify-status.yml index b923ed2f53d..e0bb6bc46c0 100644 --- a/.github/workflows/verify-status.yml +++ b/.github/workflows/verify-status.yml @@ -41,12 +41,14 @@ jobs: - name: Commit if changed (TechEngineBot) run: | - if git diff --quiet -- data/_verify/status.json; then + # Stage first so a brand-new (untracked) status.json is detected too — + # `git diff` alone ignores untracked files. + git add data/_verify/status.json + if git diff --cached --quiet; then echo "verification status unchanged"; exit 0 fi # Attribute the commit to the TechEngineBot account (id 289859915). git config user.name "TechEngineBot" git config user.email "289859915+TechEngineBot@users.noreply.github.com" - git add data/_verify/status.json git commit -m "chore(verify): refresh verification status aggregate" git push origin HEAD:main