mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-08-22 19:29:07 +08:00
Variable renaming
This commit is contained in:
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…
x
Reference in New Issue
Block a user