Files
toolkit/packages/artifact/src/internal/shared/config.ts
T

16 lines
433 B
TypeScript
Raw Normal View History

2023-08-04 09:23:14 -07:00
export function getRuntimeToken(): string {
const token = process.env['ACTIONS_RUNTIME_TOKEN']
if (!token) {
throw new Error('Unable to get the ACTIONS_RUNTIME_TOKEN env variable')
2023-08-04 09:23:14 -07:00
}
return token
}
export function getResultsServiceUrl(): string {
const resultsUrl = process.env['ACTIONS_RESULTS_URL']
if (!resultsUrl) {
throw new Error('Unable to get ACTIONS_RESULTS_URL env variable')
}
return resultsUrl
}