Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions scripts/ci/codegen/pushGeneratedCode.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable no-console */
import { run, GENERATED_MAIN_BRANCH } from '../../common';
import { run } from '../../common';
import { configureGitHubAuthor } from '../../release/common';
import { getNbGitDiff } from '../utils';

Expand Down Expand Up @@ -45,9 +45,7 @@ export async function pushGeneratedCode(): Promise<void> {
await run(`yarn workspace scripts cleanGeneratedBranch ${baseBranch}`);

console.log(`Creating branch for generated code: '${generatedCodeBranch}'`);
await run(
`git branch ${generatedCodeBranch} origin/${GENERATED_MAIN_BRANCH}`
);
await run(`git branch ${generatedCodeBranch}`);
}

await run(`git checkout ${generatedCodeBranch}`);
Expand Down