Auto-sync: 2026-02-13 06:58:07
Synced workflows from Windmill workspace
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user