File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 16
16
17
17
import * as httpm from 'typed-rest-client/HttpClient' ;
18
18
import { retry } from '@lifeomic/attempt' ;
19
- import { GCLOUD_METRICS_LABEL } from './install-util' ;
20
19
21
20
/**
22
21
* Formats the gcloud SDK release URL according to the specified arguments.
@@ -68,7 +67,7 @@ export async function getReleaseURL(
68
67
) : Promise < string > {
69
68
try {
70
69
const url = formatReleaseURL ( os , arch , version ) ;
71
- const client = new httpm . HttpClient ( GCLOUD_METRICS_LABEL ) ;
70
+ const client = new httpm . HttpClient ( 'github-actions-setup-gcloud-sdk' ) ;
72
71
return retry (
73
72
async ( ) => {
74
73
const res = await client . head ( url ) ;
Original file line number Diff line number Diff line change @@ -21,9 +21,6 @@ import * as toolCache from '@actions/tool-cache';
21
21
import * as core from '@actions/core' ;
22
22
import path from 'path' ;
23
23
24
- export const GCLOUD_METRICS_ENV_VAR = 'CLOUDSDK_METRICS_ENVIRONMENT' ;
25
- export const GCLOUD_METRICS_LABEL = 'github-actions-setup-gcloud' ;
26
-
27
24
/**
28
25
* Installs the gcloud SDK into the actions environment.
29
26
*
@@ -39,6 +36,5 @@ export async function installGcloudSDK(
39
36
let toolPath = await toolCache . cacheDir ( toolRoot , 'gcloud' , version ) ;
40
37
toolPath = path . join ( toolPath , 'bin' ) ;
41
38
core . addPath ( toolPath ) ;
42
- core . exportVariable ( GCLOUD_METRICS_ENV_VAR , GCLOUD_METRICS_LABEL ) ;
43
39
return toolPath ;
44
40
}
Original file line number Diff line number Diff line change 20
20
21
21
import * as httpm from 'typed-rest-client/HttpClient' ;
22
22
import { retry } from '@lifeomic/attempt' ;
23
- import { GCLOUD_METRICS_LABEL } from './install-util' ;
24
23
25
24
/**
26
25
* @returns The latest stable version of the gcloud SDK.
27
26
*/
28
27
export async function getLatestGcloudSDKVersion ( ) : Promise < string > {
29
28
const queryUrl =
30
29
'https://dl.google.com/dl/cloudsdk/channels/rapid/components-2.json' ;
31
- const client : httpm . HttpClient = new httpm . HttpClient ( GCLOUD_METRICS_LABEL ) ;
30
+ const client : httpm . HttpClient = new httpm . HttpClient (
31
+ 'github-actions-setup-gcloud-sdk' ,
32
+ ) ;
32
33
return await retry (
33
34
async ( ) => {
34
35
const res = await client . get ( queryUrl ) ;
Original file line number Diff line number Diff line change @@ -18,7 +18,11 @@ import * as core from '@actions/core';
18
18
import * as exec from '@actions/exec' ;
19
19
import * as setupGcloud from '../setupGcloudSDK/src/' ;
20
20
21
+ export const GCLOUD_METRICS_ENV_VAR = 'CLOUDSDK_METRICS_ENVIRONMENT' ;
22
+ export const GCLOUD_METRICS_LABEL = 'github-actions-deploy-appengine' ;
23
+
21
24
async function run ( ) : Promise < void > {
25
+ core . exportVariable ( GCLOUD_METRICS_ENV_VAR , GCLOUD_METRICS_LABEL ) ;
22
26
try {
23
27
// Get action inputs.
24
28
let projectId = core . getInput ( 'project_id' ) ;
You can’t perform that action at this time.
0 commit comments