Skip to content

Commit

Permalink
push
Browse files Browse the repository at this point in the history
  • Loading branch information
conmaster2112 committed Oct 10, 2024
1 parent 240b157 commit c9bd44d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,8 @@ export async function GithubChekoutBranch(branch, force) {
console.error(`Fail to execute '${cmd}' command`);
return false;
}

await ExecuteCommand("git branch -r -a");

// Basic checkout command execution
cmd = `git checkout ${branch}${force?" -f":""}`;
Expand Down Expand Up @@ -296,7 +298,7 @@ export async function GithubCommitAndPush(branch, version, isPreview) {
result = await ExecuteCommand(`git commit -m \"New ${branch} v${isPreview?version:GetEngineVersion(version)}\"`);
if(result.exitCode != 0) return false;

result = await ExecuteCommand("git push --force " + branch);
result = await ExecuteCommand("git push --force origin " + branch);
if(result.exitCode != 0) return false;

return true;
Expand Down

0 comments on commit c9bd44d

Please sign in to comment.