mirror of
https://github.com/actions/runner-container-hooks.git
synced 2025-12-19 03:16:44 +00:00
10 lines
265 B
TypeScript
10 lines
265 B
TypeScript
export function getRunnerLabel(): string {
|
|
const name = process.env.RUNNER_NAME
|
|
if (!name) {
|
|
throw new Error(
|
|
"'RUNNER_NAME' env is required, please contact your self hosted runner administrator"
|
|
)
|
|
}
|
|
return Buffer.from(name).toString('hex')
|
|
}
|