File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
apps/webapp/app/presenters/v3 Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -141,12 +141,14 @@ export class DeploymentPresenter {
141141 } ,
142142 } ) ;
143143
144+ const gitMetadata = processGitMetadata ( deployment . git ) ;
145+
144146 const externalBuildData = deployment . externalBuildData
145147 ? ExternalBuildData . safeParse ( deployment . externalBuildData )
146148 : undefined ;
147149
148150 let s2Logs = undefined ;
149- if ( env . S2_ENABLED === "1" ) {
151+ if ( env . S2_ENABLED === "1" && gitMetadata ?. source === "trigger_github_app" ) {
150152 const s2 = new S2 ( { accessToken : env . S2_ACCESS_TOKEN } ) ;
151153 const projectS2AccessToken = await s2 . accessTokens . issue ( {
152154 id : `${ project . externalRef } -${ new Date ( ) . getTime ( ) } ` ,
@@ -206,7 +208,7 @@ export class DeploymentPresenter {
206208 errorData : DeploymentPresenter . prepareErrorData ( deployment . errorData ) ,
207209 isBuilt : ! ! deployment . builtAt ,
208210 type : deployment . type ,
209- git : processGitMetadata ( deployment . git ) ,
211+ git : gitMetadata ,
210212 } ,
211213 } ;
212214 }
You can’t perform that action at this time.
0 commit comments