From 9677c2ba816ad6b2ca54b584a46081818431c353 Mon Sep 17 00:00:00 2001 From: Stephen Nelson Date: Sat, 2 Mar 2024 10:40:32 -0500 Subject: [PATCH] update dist --- dist/index.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/dist/index.js b/dist/index.js index caf0c02..dab5e72 100644 --- a/dist/index.js +++ b/dist/index.js @@ -2760,8 +2760,6 @@ const fs = __importStar(__nccwpck_require__(147)); */ async function run() { try { - // Get the environment variable option from input - const outputEnvironmentVariables = core.getInput('environment'); // Get the path to the ASDF tool-versions file from input const toolVersionsFilePath = core.getInput('file'); // Check if the file exists @@ -2771,7 +2769,7 @@ async function run() { core.debug(`Parsing tool-versions file: ${toolVersionsFilePath}`); // Read the contents of the tool-versions file const toolVersionsFileContent = fs.readFileSync(toolVersionsFilePath, 'utf8'); - // Parse the tool-versions file and set environment variables + // Parse the tool-versions file and set outputs const lines = toolVersionsFileContent.split('\n'); for (const line of lines) { // Skip comments and empty lines @@ -2779,10 +2777,6 @@ async function run() { return; } const [tool, version] = line.split(/\s+/); - if (outputEnvironmentVariables === 'true') { - core.debug(`Setting environment variable: ${tool.toUpperCase()}_VERSION=${version}`); - core.exportVariable(`${tool.toUpperCase()}_VERSION`, version); - } core.setOutput(`${tool.toLowerCase()}-version`, version); } }