Files
clawbot/skills/repo-sync/sync.sh
2026-02-13 13:19:12 -05:00

13 lines
282 B
Bash
Executable File

#!/bin/bash
cd /Users/adolforeyna/.openclaw/workspace
# Check if there are changes
if [[ -n $(git status -s) ]]; then
git add .
git commit -m "Auto-sync: $(date '+%Y-%m-%d %H:%M:%S')"
git push origin main
echo "Synced changes to repo."
else
echo "No changes to sync."
fi