From 0949c87857988cd55971760d4461738ec27d31f2 Mon Sep 17 00:00:00 2001 From: IvanZosimov Date: Fri, 30 Sep 2022 14:43:34 +0200 Subject: [PATCH] Output DOTNET_INSTALL_DIR if present --- dist/index.js | 4 ++++ src/installer.ts | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/dist/index.js b/dist/index.js index ab82125..7ba0702 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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', diff --git a/src/installer.ts b/src/installer.ts index dc3c275..ecae01d 100644 --- a/src/installer.ts +++ b/src/installer.ts @@ -170,6 +170,10 @@ export class DotnetCoreInstaller { } public async installDotnet(): Promise { + const dotnetInstallDir = process.env['DOTNET_INSTALL_DIR']; + if (dotnetInstallDir) { + core.debug(`DOTNET_INSTALL_DIR is set up to ${dotnetInstallDir}`); + } const windowsDefaultOptions = [ '-NoLogo', '-Sta',