Output DOTNET_INSTALL_DIR if present

This commit is contained in:
IvanZosimov 2022-09-30 14:43:34 +02:00
parent b4e0d356f9
commit 0949c87857
2 changed files with 8 additions and 0 deletions

4
dist/index.js vendored
View File

@ -301,6 +301,10 @@ class DotnetCoreInstaller {
}
installDotnet() {
return __awaiter(this, void 0, void 0, function* () {
const dotnetInstallDir = process.env['DOTNET_INSTALL_DIR'];
if (dotnetInstallDir) {
core.debug(`DOTNET_INSTALL_DIR is set up to ${dotnetInstallDir}`);
}
const windowsDefaultOptions = [
'-NoLogo',
'-Sta',

View File

@ -170,6 +170,10 @@ export class DotnetCoreInstaller {
}
public async installDotnet(): Promise<string> {
const dotnetInstallDir = process.env['DOTNET_INSTALL_DIR'];
if (dotnetInstallDir) {
core.debug(`DOTNET_INSTALL_DIR is set up to ${dotnetInstallDir}`);
}
const windowsDefaultOptions = [
'-NoLogo',
'-Sta',