Compare commits

...

2 Commits

Author SHA1 Message Date
copilot-swe-agent[bot]
3ca68a180f Fix beta workflow to push release branch before creating PR
Co-authored-by: louislam <1336778+louislam@users.noreply.github.com>
2026-01-13 10:42:00 +00:00
copilot-swe-agent[bot]
b549a12b2d Initial plan 2026-01-13 10:38:49 +00:00

View File

@ -58,7 +58,13 @@ function commit(version) {
throw new Error("commit error"); throw new Error("commit error");
} }
res = childProcess.spawnSync("git", ["push", "origin", "master"]); // Get the current branch name
res = childProcess.spawnSync("git", ["rev-parse", "--abbrev-ref", "HEAD"]);
const currentBranch = res.stdout.toString().trim();
console.log(`Pushing to current branch: ${currentBranch}`);
// Push to the current branch with --set-upstream to create it on remote if it doesn't exist
res = childProcess.spawnSync("git", ["push", "--set-upstream", "origin", currentBranch]);
console.log(res.stdout.toString().trim()); console.log(res.stdout.toString().trim());
} }