@dambrogia/openclaw-agents-backup 0.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/backup.ts +4 -1
package/package.json
CHANGED
package/src/backup.ts
CHANGED
|
@@ -168,7 +168,7 @@ export async function performBackup(workspacePath: string): Promise<BackupResult
|
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
/**
|
|
171
|
-
* Commit backup changes to git repository
|
|
171
|
+
* Commit backup changes to git repository and push to remote
|
|
172
172
|
*/
|
|
173
173
|
async function gitCommitBackup(repoPath: string): Promise<void> {
|
|
174
174
|
const currentDir = process.cwd();
|
|
@@ -184,6 +184,9 @@ async function gitCommitBackup(repoPath: string): Promise<void> {
|
|
|
184
184
|
|
|
185
185
|
// Commit changes
|
|
186
186
|
executeCommand(`git commit -m "${commitMessage}"`);
|
|
187
|
+
|
|
188
|
+
// Push to remote origin
|
|
189
|
+
executeCommand('git push origin main');
|
|
187
190
|
} finally {
|
|
188
191
|
process.chdir(currentDir);
|
|
189
192
|
}
|