mirror of
https://code.forgejo.org/actions/setup-go
synced 2025-03-28 03:55:37 +00:00
14 lines
541 B
TypeScript
14 lines
541 B
TypeScript
export enum StableReleaseAlias {
|
|
Stable = 'stable',
|
|
OldStable = 'oldstable'
|
|
}
|
|
|
|
export const isSelfHosted = (): boolean =>
|
|
process.env['AGENT_ISSELFHOSTED'] === '1' ||
|
|
(process.env['AGENT_ISSELFHOSTED'] === undefined &&
|
|
process.env['RUNNER_ENVIRONMENT'] !== 'github-hosted');
|
|
/* the above is simplified from:
|
|
process.env['RUNNER_ENVIRONMENT'] === undefined && process.env['AGENT_ISSELFHOSTED'] === '1'
|
|
||
|
|
process.env['AGENT_ISSELFHOSTED'] === undefined && process.env['RUNNER_ENVIRONMENT'] !== 'github-hosted'
|
|
*/
|