added support for tool version file

This commit is contained in:
mahabaleshwars 2024-03-04 12:07:27 +05:30
parent c3eb4ca47a
commit 7abdf1c01e
4 changed files with 31 additions and 8 deletions

View file

@ -55,7 +55,11 @@ async function run() {
);
const content = fs.readFileSync(versionFile).toString().trim();
const version = getVersionFromFileContent(content, distributionName);
const version = getVersionFromFileContent(
content,
distributionName,
versionFile
);
core.debug(`Parsed version from file '${version}'`);
if (!version) {