Skip to content

Commit abc8ba2

Browse files
committed
Checkout and track the branch
1 parent c393784 commit abc8ba2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ async function run(): Promise<void> {
4545
])
4646
} else {
4747
core.info(`Checking out ${branch}`)
48-
await exec('git', ['checkout', branch])
48+
await exec('git', ['checkout', '-t', `origin/${branch}`])
49+
await exec('git', ['pull'])
4950
}
5051

5152
// open the database

0 commit comments

Comments
 (0)