mirror of
https://github.com/actions/setup-java.git
synced 2025-04-19 17:36:45 +00:00
added support for tool version file
This commit is contained in:
parent
c3eb4ca47a
commit
7abdf1c01e
4 changed files with 31 additions and 8 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue