diff --git a/dist/index.js b/dist/index.js index 5e4c1e3..25ed05c 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1399,6 +1399,9 @@ async function run() { if (platform === 'windows-latest') { rubyPrefix = await windows.downloadExtractAndSetPATH(ruby) } else { + if (ruby.startsWith('jruby')) { + core.exportVariable('CLASSPATH', '') + } rubyPrefix = await downloadAndExtract(platform, ruby) core.addPath(`${rubyPrefix}/bin`) } diff --git a/index.js b/index.js index 5facb7e..582cfc2 100644 --- a/index.js +++ b/index.js @@ -18,6 +18,9 @@ async function run() { if (platform === 'windows-latest') { rubyPrefix = await windows.downloadExtractAndSetPATH(ruby) } else { + if (ruby.startsWith('jruby')) { + core.exportVariable('CLASSPATH', '') + } rubyPrefix = await downloadAndExtract(platform, ruby) core.addPath(`${rubyPrefix}/bin`) }