Add NET to the PATH for Linux

This commit is contained in:
IvanZosimov 2022-08-18 13:57:57 +02:00
parent 8bdb3102c8
commit 459d3c17af
2 changed files with 2 additions and 0 deletions

1
dist/index.js vendored
View File

@ -348,6 +348,7 @@ class DotnetCoreInstaller {
} }
else if (IS_LINUX) { else if (IS_LINUX) {
core.exportVariable('DOTNET_ROOT', DotnetCoreInstaller.installationDirectoryLinux); core.exportVariable('DOTNET_ROOT', DotnetCoreInstaller.installationDirectoryLinux);
core.addPath(DotnetCoreInstaller.installationDirectoryLinux);
} }
else { else {
// This is the default set in install-dotnet.sh // This is the default set in install-dotnet.sh

View File

@ -214,6 +214,7 @@ export class DotnetCoreInstaller {
'DOTNET_ROOT', 'DOTNET_ROOT',
DotnetCoreInstaller.installationDirectoryLinux DotnetCoreInstaller.installationDirectoryLinux
); );
core.addPath(DotnetCoreInstaller.installationDirectoryLinux);
} else { } else {
// This is the default set in install-dotnet.sh // This is the default set in install-dotnet.sh
core.addPath(path.join(process.env['HOME'] + '', '.dotnet')); core.addPath(path.join(process.env['HOME'] + '', '.dotnet'));