From 459d3c17af0e2926b64d639e652b07f91255a60d Mon Sep 17 00:00:00 2001 From: IvanZosimov Date: Thu, 18 Aug 2022 13:57:57 +0200 Subject: [PATCH] Add NET to the PATH for Linux --- dist/index.js | 1 + src/installer.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/dist/index.js b/dist/index.js index fc50f58..e00d5b6 100644 --- a/dist/index.js +++ b/dist/index.js @@ -348,6 +348,7 @@ class DotnetCoreInstaller { } else if (IS_LINUX) { core.exportVariable('DOTNET_ROOT', DotnetCoreInstaller.installationDirectoryLinux); + core.addPath(DotnetCoreInstaller.installationDirectoryLinux); } else { // This is the default set in install-dotnet.sh diff --git a/src/installer.ts b/src/installer.ts index 6846ead..5f77618 100644 --- a/src/installer.ts +++ b/src/installer.ts @@ -214,6 +214,7 @@ export class DotnetCoreInstaller { 'DOTNET_ROOT', DotnetCoreInstaller.installationDirectoryLinux ); + core.addPath(DotnetCoreInstaller.installationDirectoryLinux); } else { // This is the default set in install-dotnet.sh core.addPath(path.join(process.env['HOME'] + '', '.dotnet'));