Warn if the action ends up not installing any .NET version.

This commit is contained in:
Theodore Tsirpanis 2022-11-10 19:09:20 +02:00
parent 607fce577a
commit 9984a6fa87
2 changed files with 569 additions and 562 deletions

1127
dist/index.js vendored

File diff suppressed because it is too large Load Diff

View File

@ -46,6 +46,10 @@ export async function run() {
const globalJsonPath = path.join(process.cwd(), 'global.json');
if (fs.existsSync(globalJsonPath)) {
versions.push(getVersionFromGlobalJson(globalJsonPath));
} else {
core.info(
`global.json wasn't found in the root directory. No .NET version will be installed.`
);
}
}