@@ -192,11 +192,11 @@ export function selfHostedRunnerReason() {
192192 }
193193}
194194
195- let virtualEnvironmentName = undefined
195+ let osNameVersion = undefined
196196
197- export function getVirtualEnvironmentName ( ) {
198- if ( virtualEnvironmentName !== undefined ) {
199- return virtualEnvironmentName
197+ export function getOSNameVersion ( ) {
198+ if ( osNameVersion !== undefined ) {
199+ return osNameVersion
200200 }
201201
202202 const platform = os . platform ( )
@@ -216,12 +216,12 @@ export function getVirtualEnvironmentName() {
216216 throw new Error ( `Unknown platform ${ platform } ` )
217217 }
218218
219- virtualEnvironmentName = `${ osName } -${ osVersion } `
220- return virtualEnvironmentName
219+ osNameVersion = `${ osName } -${ osVersion } `
220+ return osNameVersion
221221}
222222
223223export function getOSNameVersionArch ( ) {
224- return `${ getVirtualEnvironmentName ( ) } -${ os . arch ( ) } `
224+ return `${ getOSNameVersion ( ) } -${ os . arch ( ) } `
225225}
226226
227227function findWindowsVersion ( ) {
@@ -258,7 +258,7 @@ export function getRunnerToolCache() {
258258
259259// Rubies prebuilt by this action embed this path rather than using $RUNNER_TOOL_CACHE
260260function getDefaultToolCachePath ( ) {
261- const platform = getVirtualEnvironmentName ( )
261+ const platform = getOSNameVersion ( )
262262 if ( platform . startsWith ( 'ubuntu-' ) ) {
263263 return '/opt/hostedtoolcache'
264264 } else if ( platform . startsWith ( 'macos-' ) ) {
0 commit comments