diff --git a/src/push.ts b/src/push.ts index 9f5099df..dd68c3ac 100644 --- a/src/push.ts +++ b/src/push.ts @@ -214,7 +214,9 @@ export const pushImages = async (input: PushImagesInput) => { (async () => { return backOff( async () => { - await rebase(config.branch, execOptions); + if (branchExist) { + await rebase(config.branch, execOptions); + } const res = await push(config.branch, execOptions); log.info(res.stdout); log.info(`Deployment Successful`);