Skip to content

Commit 7cde843

Browse files
committed
minor: deleted temp dir problem in bump-omicron.ts
1 parent 288f1c1 commit 7cde843

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tools/deno/bump-omicron.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,10 @@ async function makeOmicronPR(
147147
const prNum = prUrl.match(/\d+$/)![0]
148148
await $`gh pr merge ${prNum} --auto --squash`
149149
console.info('PR set to auto-merge when CI passes')
150+
151+
// change dir back to omicron before worktree cleanup because Deno gets
152+
// confused later when it tries to do anything while still in the deleted dir
153+
Deno.chdir(OMICRON_DIR)
150154
}
151155

152156
// worktree has been cleaned up, so branch delete is allowed

0 commit comments

Comments
 (0)