From f62decb260f4be32cc3e2ec931b1950cf341fcdb Mon Sep 17 00:00:00 2001 From: Sergey Dolin Date: Thu, 31 Mar 2022 10:18:53 +0500 Subject: [PATCH] remove new line from pypy version --- dist/setup/index.js | 2 +- src/find-pypy.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/setup/index.js b/dist/setup/index.js index faa50c61..d6a5c9c8 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -2105,7 +2105,7 @@ function findPyPyToolCache(pythonVersion, pypyVersion, architecture) { if (!installDir) { core.info(`PyPy version ${pythonVersion} (${pypyVersion}) was not found in the local cache`); } - core.setOutput('python-version', 'pypy' + resolvedPyPyVersion); + core.setOutput('python-version', 'pypy' + resolvedPyPyVersion.trim()); return { installDir, resolvedPythonVersion, resolvedPyPyVersion }; } exports.findPyPyToolCache = findPyPyToolCache; diff --git a/src/find-pypy.ts b/src/find-pypy.ts index 8dea61f2..396f631f 100644 --- a/src/find-pypy.ts +++ b/src/find-pypy.ts @@ -90,7 +90,7 @@ export function findPyPyToolCache( ); } - core.setOutput('python-version', 'pypy' + resolvedPyPyVersion); + core.setOutput('python-version', 'pypy' + resolvedPyPyVersion.trim()); return {installDir, resolvedPythonVersion, resolvedPyPyVersion}; }