2023-08-04 09:23:14 -07:00
|
|
|
export function getRuntimeToken(): string {
|
|
|
|
|
const token = process.env['ACTIONS_RUNTIME_TOKEN']
|
|
|
|
|
if (!token) {
|
2023-08-09 10:30:44 -04:00
|
|
|
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
|
|
|
|
|
}
|