Skip to content

Commit 1fe0abe

Browse files
chore: build dist deploy-appengine (#7)
1 parent 6b7e4ce commit 1fe0abe

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

dist/index.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,14 +1070,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
10701070
*/
10711071
const httpm = __importStar(__webpack_require__(874));
10721072
const attempt_1 = __webpack_require__(503);
1073-
const install_util_1 = __webpack_require__(593);
10741073
/**
10751074
* @returns The latest stable version of the gcloud SDK.
10761075
*/
10771076
function getLatestGcloudSDKVersion() {
10781077
return __awaiter(this, void 0, void 0, function* () {
10791078
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');
10811080
return yield attempt_1.retry(() => __awaiter(this, void 0, void 0, function* () {
10821081
const res = yield client.get(queryUrl);
10831082
if (res.message.statusCode != 200) {
@@ -1189,7 +1188,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
11891188
Object.defineProperty(exports, "__esModule", { value: true });
11901189
const httpm = __importStar(__webpack_require__(874));
11911190
const attempt_1 = __webpack_require__(503);
1192-
const install_util_1 = __webpack_require__(593);
11931191
/**
11941192
* Formats the gcloud SDK release URL according to the specified arguments.
11951193
*
@@ -1232,7 +1230,7 @@ function getReleaseURL(os, arch, version) {
12321230
return __awaiter(this, void 0, void 0, function* () {
12331231
try {
12341232
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');
12361234
return attempt_1.retry(() => __awaiter(this, void 0, void 0, function* () {
12371235
const res = yield client.head(url);
12381236
if (res.message.statusCode === 200) {
@@ -2613,8 +2611,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
26132611
const core = __importStar(__webpack_require__(470));
26142612
const exec = __importStar(__webpack_require__(986));
26152613
const setupGcloud = __importStar(__webpack_require__(994));
2614+
exports.GCLOUD_METRICS_ENV_VAR = 'CLOUDSDK_METRICS_ENVIRONMENT';
2615+
exports.GCLOUD_METRICS_LABEL = 'github-actions-deploy-appengine';
26162616
function run() {
26172617
return __awaiter(this, void 0, void 0, function* () {
2618+
core.exportVariable(exports.GCLOUD_METRICS_ENV_VAR, exports.GCLOUD_METRICS_LABEL);
26182619
try {
26192620
// Get action inputs.
26202621
let projectId = core.getInput('project_id');
@@ -9267,8 +9268,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
92679268
const toolCache = __importStar(__webpack_require__(533));
92689269
const core = __importStar(__webpack_require__(470));
92699270
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';
92729271
/**
92739272
* Installs the gcloud SDK into the actions environment.
92749273
*
@@ -9282,7 +9281,6 @@ function installGcloudSDK(version, gcloudExtPath) {
92829281
let toolPath = yield toolCache.cacheDir(toolRoot, 'gcloud', version);
92839282
toolPath = path_1.default.join(toolPath, 'bin');
92849283
core.addPath(toolPath);
9285-
core.exportVariable(exports.GCLOUD_METRICS_ENV_VAR, exports.GCLOUD_METRICS_LABEL);
92869284
return toolPath;
92879285
});
92889286
}

0 commit comments

Comments
 (0)