@@ -1070,14 +1070,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
1070
1070
*/
1071
1071
const httpm = __importStar ( __webpack_require__ ( 874 ) ) ;
1072
1072
const attempt_1 = __webpack_require__ ( 503 ) ;
1073
- const install_util_1 = __webpack_require__ ( 593 ) ;
1074
1073
/**
1075
1074
* @returns The latest stable version of the gcloud SDK.
1076
1075
*/
1077
1076
function getLatestGcloudSDKVersion ( ) {
1078
1077
return __awaiter ( this , void 0 , void 0 , function * ( ) {
1079
1078
const queryUrl = 'https://dl.google.com/dl/cloudsdk/channels/rapid/components-2.json' ;
1080
- const client = new httpm . HttpClient ( install_util_1 . GCLOUD_METRICS_LABEL ) ;
1079
+ const client = new httpm . HttpClient ( 'github-actions-setup-gcloud-sdk' ) ;
1081
1080
return yield attempt_1 . retry ( ( ) => __awaiter ( this , void 0 , void 0 , function * ( ) {
1082
1081
const res = yield client . get ( queryUrl ) ;
1083
1082
if ( res . message . statusCode != 200 ) {
@@ -1189,7 +1188,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
1189
1188
Object . defineProperty ( exports , "__esModule" , { value : true } ) ;
1190
1189
const httpm = __importStar ( __webpack_require__ ( 874 ) ) ;
1191
1190
const attempt_1 = __webpack_require__ ( 503 ) ;
1192
- const install_util_1 = __webpack_require__ ( 593 ) ;
1193
1191
/**
1194
1192
* Formats the gcloud SDK release URL according to the specified arguments.
1195
1193
*
@@ -1232,7 +1230,7 @@ function getReleaseURL(os, arch, version) {
1232
1230
return __awaiter ( this , void 0 , void 0 , function * ( ) {
1233
1231
try {
1234
1232
const url = formatReleaseURL ( os , arch , version ) ;
1235
- const client = new httpm . HttpClient ( install_util_1 . GCLOUD_METRICS_LABEL ) ;
1233
+ const client = new httpm . HttpClient ( 'github-actions-setup-gcloud-sdk' ) ;
1236
1234
return attempt_1 . retry ( ( ) => __awaiter ( this , void 0 , void 0 , function * ( ) {
1237
1235
const res = yield client . head ( url ) ;
1238
1236
if ( res . message . statusCode === 200 ) {
@@ -2613,8 +2611,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
2613
2611
const core = __importStar ( __webpack_require__ ( 470 ) ) ;
2614
2612
const exec = __importStar ( __webpack_require__ ( 986 ) ) ;
2615
2613
const setupGcloud = __importStar ( __webpack_require__ ( 994 ) ) ;
2614
+ exports . GCLOUD_METRICS_ENV_VAR = 'CLOUDSDK_METRICS_ENVIRONMENT' ;
2615
+ exports . GCLOUD_METRICS_LABEL = 'github-actions-deploy-appengine' ;
2616
2616
function run ( ) {
2617
2617
return __awaiter ( this , void 0 , void 0 , function * ( ) {
2618
+ core . exportVariable ( exports . GCLOUD_METRICS_ENV_VAR , exports . GCLOUD_METRICS_LABEL ) ;
2618
2619
try {
2619
2620
// Get action inputs.
2620
2621
let projectId = core . getInput ( 'project_id' ) ;
@@ -9267,8 +9268,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
9267
9268
const toolCache = __importStar ( __webpack_require__ ( 533 ) ) ;
9268
9269
const core = __importStar ( __webpack_require__ ( 470 ) ) ;
9269
9270
const path_1 = __importDefault ( __webpack_require__ ( 622 ) ) ;
9270
- exports . GCLOUD_METRICS_ENV_VAR = 'CLOUDSDK_METRICS_ENVIRONMENT' ;
9271
- exports . GCLOUD_METRICS_LABEL = 'github-actions-setup-gcloud' ;
9272
9271
/**
9273
9272
* Installs the gcloud SDK into the actions environment.
9274
9273
*
@@ -9282,7 +9281,6 @@ function installGcloudSDK(version, gcloudExtPath) {
9282
9281
let toolPath = yield toolCache . cacheDir ( toolRoot , 'gcloud' , version ) ;
9283
9282
toolPath = path_1 . default . join ( toolPath , 'bin' ) ;
9284
9283
core . addPath ( toolPath ) ;
9285
- core . exportVariable ( exports . GCLOUD_METRICS_ENV_VAR , exports . GCLOUD_METRICS_LABEL ) ;
9286
9284
return toolPath ;
9287
9285
} ) ;
9288
9286
}
0 commit comments