Spaces:
Running
Running
| import subprocess | |
| def run_cmd(cmd): | |
| print(f"Running: {' '.join(cmd)}") | |
| result = subprocess.run(cmd, capture_output=True, text=True) | |
| print("STDOUT:", result.stdout) | |
| print("STDERR:", result.stderr) | |
| return result.returncode | |
| # Checkout main | |
| run_cmd(["git", "checkout", "main"]) | |
| # Merge the branch | |
| run_cmd(["git", "merge", "jules-14141810205007445021-83c177a6"]) | |
| # Push to origin main | |
| run_cmd(["git", "push", "origin", "main"]) | |