Auto-sync: 2026-02-13 06:58:07

Synced workflows from Windmill workspace
This commit is contained in:
Windmill Bot
2026-02-13 06:58:07 +00:00
parent 3afdbd1e2e
commit 308e1c91ee

View File

@@ -58,28 +58,33 @@ fi
echo "Pulling from Windmill..." echo "Pulling from Windmill..."
# wmill sync pull will use the workspace defined in wmill.yaml or env vars. # wmill sync pull will use the workspace defined in wmill.yaml or env vars.
# We add --yes to avoid prompts. # We add --yes to avoid prompts.
if wmill sync pull --skip-variables --skip-secrets --skip-resources --yes; then # if wmill sync pull --skip-variables --skip-secrets --skip-resources --yes --verbose; then
echo "Successfully pulled from Windmill." echo "Successfully pulled from Windmill (skipped for testing)."
else # else
echo "Error: wmill sync pull failed. Check your WM_TOKEN and connection." # echo "Error: wmill sync pull failed. Check your WM_TOKEN and connection."
exit 1 # exit 1
fi # fi
# Check for changes # Check for changes
# Force add everything first to capture untracked files
git add .
if [[ -n $(git status --porcelain) ]]; then if [[ -n $(git status --porcelain) ]]; then
echo "Changes detected, committing to Git..." echo "Changes detected, committing to Git..."
# Stage changes
git add -A
# Commit # Commit
TIMESTAMP=$(date '+%Y-%m-%d %H:%M:%S') TIMESTAMP=$(date '+%Y-%m-%d %H:%M:%S')
git commit -m "Auto-sync: ${TIMESTAMP}
Synced workflows from Windmill workspace" # 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}
echo "✓ Changes committed to Git" Synced workflows from Windmill workspace"; then
echo "Successfully synced and committed changes at ${TIMESTAMP}" echo "✓ Changes committed to Git"
echo "Successfully synced and committed changes at ${TIMESTAMP}"
else
echo "Error: Git commit failed."
exit 1
fi
else else
echo "✓ No changes detected" echo "✓ No changes detected"
echo "No changes to commit" echo "No changes to commit"