Files
toolkit/packages/cache/src/internal/config.ts
T

8 lines
210 B
TypeScript
Raw Normal View History

2024-05-29 08:31:54 -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')
}
return token
}