mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-11-20 23:01:06 +08:00
8 lines
210 B
TypeScript
8 lines
210 B
TypeScript
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
|
|
}
|