Skip to content

Commit 2a24c73

Browse files
committed
chore: login
1 parent 126578d commit 2a24c73

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/ci/codegen/pushToRepository.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,9 @@ async function pushToRepository(repository: string, config: RepositoryConfigurat
158158
head: task.prBranch,
159159
});
160160

161-
await run(`gh repo set-default ${OWNER}/${repository} && gh pr merge ${data.number} --auto`);
161+
await run(`gh auth login --with-token ${ensureGitHubToken()}`);
162+
await run(`gh repo set-default ${OWNER}/${repository}`);
163+
await run(`gh pr merge ${data.number} --auto`);
162164

163165
console.log(`Pull request created on ${OWNER}/${repository}`);
164166
console.log(` > ${data.url}`);

0 commit comments

Comments
 (0)