From 523c22aeaf50b01562121d85f169dde362113814 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Vannicatte?= <20689156+shortcuts@users.noreply.github.com> Date: Fri, 8 Apr 2022 16:55:21 +0200 Subject: [PATCH] chore: codegen start from current branch (#358) --- scripts/ci/codegen/pushGeneratedCode.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/ci/codegen/pushGeneratedCode.ts b/scripts/ci/codegen/pushGeneratedCode.ts index b1c7f3bf5..e0b281109 100644 --- a/scripts/ci/codegen/pushGeneratedCode.ts +++ b/scripts/ci/codegen/pushGeneratedCode.ts @@ -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'; @@ -45,9 +45,7 @@ export async function pushGeneratedCode(): Promise { 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}`);