Skip to content

Commit 048fd88

Browse files
committed
move validateGitHubLink call to a better higher clearer more consolidated spot
1 parent 5830afc commit 048fd88

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/deploy.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,7 @@ class Deployer {
370370
const {deployConfig, deployTarget} = await this.getDeployTarget(await this.getUpdatedDeployConfig());
371371
let deployId: string | null;
372372
if (deployConfig.continuousDeployment) {
373+
await this.validateGitHubLink(deployTarget);
373374
deployId = await this.cloudBuild(deployTarget);
374375
} else {
375376
const buildFilePaths = await this.getBuildFilePaths();
@@ -585,8 +586,6 @@ class Deployer {
585586
continuousDeployment = enable;
586587
}
587588

588-
if (continuousDeployment) await this.validateGitHubLink(deployTarget);
589-
590589
const newDeployConfig = {
591590
projectId: deployTarget.project.id,
592591
projectSlug: deployTarget.project.slug,

0 commit comments

Comments
 (0)