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'));