@@ -38,7 +38,6 @@ import {
38
38
parseKVStringAndFile ,
39
39
pinnedToHeadWarning ,
40
40
presence ,
41
- stubEnv ,
42
41
} from '@google-github-actions/actions-utils' ;
43
42
import {
44
43
authenticateGcloudSDK ,
@@ -81,10 +80,9 @@ enum ResponseTypes {
81
80
*/
82
81
export async function run ( ) : Promise < void > {
83
82
// Register metrics
84
- const restoreEnv = stubEnv ( {
85
- CLOUDSDK_METRICS_ENVIRONMENT : 'github-actions-deploy-cloudrun' ,
86
- CLOUDSDK_METRICS_ENVIRONMENT_VERSION : appVersion ,
87
- } ) ;
83
+ process . env . CLOUDSDK_CORE_DISABLE_PROMPTS = '1' ;
84
+ process . env . CLOUDSDK_METRICS_ENVIRONMENT = 'github-actions-deploy-cloudrun' ;
85
+ process . env . CLOUDSDK_METRICS_ENVIRONMENT_VERSION = appVersion ;
88
86
89
87
// Warn if pinned to HEAD
90
88
if ( isPinnedToHead ( ) ) {
@@ -192,7 +190,7 @@ export async function run(): Promise<void> {
192
190
`not covered by the semver backwards compatibility guarantee.` ,
193
191
) ;
194
192
195
- cmd = [ 'run' , 'jobs' , 'deploy' , job , '--quiet' ] ;
193
+ cmd = [ 'run' , 'jobs' , 'deploy' , job ] ;
196
194
197
195
if ( image ) {
198
196
cmd . push ( '--image' , image ) ;
@@ -216,7 +214,7 @@ export async function run(): Promise<void> {
216
214
cmd . push ( '--labels' , joinKVStringForGCloud ( compiledLabels ) ) ;
217
215
}
218
216
} else {
219
- cmd = [ 'run' , 'deploy' , service , '--quiet' ] ;
217
+ cmd = [ 'run' , 'deploy' , service ] ;
220
218
221
219
if ( image ) {
222
220
cmd . push ( '--image' , image ) ;
@@ -315,8 +313,6 @@ export async function run(): Promise<void> {
315
313
} catch ( err ) {
316
314
const msg = errorMessage ( err ) ;
317
315
setFailed ( `google-github-actions/deploy-cloudrun failed with: ${ msg } ` ) ;
318
- } finally {
319
- restoreEnv ( ) ;
320
316
}
321
317
}
322
318
0 commit comments