Skip to content

Commit

Permalink
chore: codegen start from current branch (#358)
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcuts authored Apr 8, 2022
1 parent 66b8edf commit 523c22a
Showing 1 changed file with 2 additions and 4 deletions.
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

0 comments on commit 523c22a

Please sign in to comment.