mirror of https://github.com/actions/toolkit
Variable renaming
parent
3ee6b4b169
commit
a3d4efa112
|
@ -7,11 +7,11 @@ export function getRuntimeToken(): string {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getResultsServiceUrl(): string {
|
export function getResultsServiceUrl(): string {
|
||||||
const workFlowRunId = process.env['ACTIONS_RESULTS_URL']
|
const resultsUrl = process.env['ACTIONS_RESULTS_URL']
|
||||||
if (!workFlowRunId) {
|
if (!resultsUrl) {
|
||||||
throw new Error('Unable to get the ACTIONS_RESULTS_URL environment variable which is required')
|
throw new Error('Unable to get the ACTIONS_RESULTS_URL environment variable which is required')
|
||||||
}
|
}
|
||||||
return workFlowRunId
|
return resultsUrl
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getWorkFlowRunId(): string {
|
export function getWorkFlowRunId(): string {
|
||||||
|
|
|
@ -5,7 +5,7 @@ export interface UploadResponse {
|
||||||
artifactName: string
|
artifactName: string
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Total size of the artifact in bytes that was uploaded
|
* Total size of the artifact that was uploaded in bytes
|
||||||
*/
|
*/
|
||||||
size: number
|
size: number
|
||||||
}
|
}
|
Loading…
Reference in New Issue