From 308e1c91eed112b658c586036117848be74a7df5 Mon Sep 17 00:00:00 2001 From: Windmill Bot Date: Fri, 13 Feb 2026 06:58:07 +0000 Subject: [PATCH] Auto-sync: 2026-02-13 06:58:07 Synced workflows from Windmill workspace --- workflows/u/antigravity/git_sync__flow/a.sh | 33 ++++++++++++--------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/workflows/u/antigravity/git_sync__flow/a.sh b/workflows/u/antigravity/git_sync__flow/a.sh index 4f29298..2ce95f2 100644 --- a/workflows/u/antigravity/git_sync__flow/a.sh +++ b/workflows/u/antigravity/git_sync__flow/a.sh @@ -58,28 +58,33 @@ fi echo "Pulling from Windmill..." # wmill sync pull will use the workspace defined in wmill.yaml or env vars. # We add --yes to avoid prompts. -if wmill sync pull --skip-variables --skip-secrets --skip-resources --yes; then - echo "Successfully pulled from Windmill." -else - echo "Error: wmill sync pull failed. Check your WM_TOKEN and connection." - exit 1 -fi +# if wmill sync pull --skip-variables --skip-secrets --skip-resources --yes --verbose; then + echo "Successfully pulled from Windmill (skipped for testing)." +# else +# echo "Error: wmill sync pull failed. Check your WM_TOKEN and connection." +# exit 1 +# fi # Check for changes +# Force add everything first to capture untracked files +git add . + if [[ -n $(git status --porcelain) ]]; then echo "Changes detected, committing to Git..." - # Stage changes - git add -A - # Commit TIMESTAMP=$(date '+%Y-%m-%d %H:%M:%S') - git commit -m "Auto-sync: ${TIMESTAMP} - -Synced workflows from Windmill workspace" - echo "✓ Changes committed to Git" - echo "Successfully synced and committed changes at ${TIMESTAMP}" + # Use explicit config to ensure commit works even if global config fails + if git -c user.email="windmill-bot@example.com" -c user.name="Windmill Bot" commit -m "Auto-sync: ${TIMESTAMP} + +Synced workflows from Windmill workspace"; then + echo "✓ Changes committed to Git" + echo "Successfully synced and committed changes at ${TIMESTAMP}" + else + echo "Error: Git commit failed." + exit 1 + fi else echo "✓ No changes detected" echo "No changes to commit"