Add RUNNER_ENVIRONMENT to ActionsEnvVars

This commit is contained in:
Michael B. Gale
2026-07-09 14:31:08 +01:00
parent a440e35eda
commit 80dcb7ccdf
5 changed files with 8 additions and 6 deletions

View File

@@ -275,7 +275,7 @@ export const getFileType = async (filePath: string): Promise<string> => {
};
export function isSelfHostedRunner(env: Env = getEnv()) {
return env.getOptional("RUNNER_ENVIRONMENT") === "self-hosted";
return env.getOptional(ActionsEnvVars.RUNNER_ENVIRONMENT) === "self-hosted";
}
/** Determines whether the workflow trigger is `dynamic`. */