Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tscpp committed Jun 18, 2024
1 parent 771a5c3 commit 69e9613
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/scripts/create-versioning-pull-request.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if (!dry && (await getCurrentBranch()) !== GITHUB_BASE_BRANCH) {
}

if (!dry) {
console.info(`Switch branch to ${GITHUB_HEAD_BRANCH}.`);
console.info(`Switching branch to ${GITHUB_HEAD_BRANCH}.`);
await $`git checkout -B ${GITHUB_HEAD_BRANCH}`;
}

Expand Down Expand Up @@ -133,6 +133,11 @@ if (pull) {
}
}

if (!dry) {
console.info(`Switching branch to ${GITHUB_BASE_BRANCH}.`);
await $`git checkout ${GITHUB_BASE_BRANCH}`;
}

async function isClean() {
const { stdout } = await $`git status --porcelain`;
return stdout.trim() === "";
Expand Down

0 comments on commit 69e9613

Please sign in to comment.