Auto-sync: 2026-02-13 13:19:12
This commit is contained in:
8
skills/repo-sync/SKILL.md
Normal file
8
skills/repo-sync/SKILL.md
Normal file
@@ -0,0 +1,8 @@
|
||||
# Repo Sync
|
||||
Description: Sync the current workspace to the configured git repository. Use this after making significant changes to files.
|
||||
|
||||
## Tools
|
||||
|
||||
### sync
|
||||
Description: Commit and push all current changes to the remote repository.
|
||||
Command: ./skills/repo-sync/sync.sh
|
||||
12
skills/repo-sync/sync.sh
Executable file
12
skills/repo-sync/sync.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user