mirror of
https://github.com/actions/setup-dotnet.git
synced 2025-08-18 06:35:09 +00:00
Add NET to the PATH for Linux
This commit is contained in:
parent
8bdb3102c8
commit
459d3c17af
1
dist/index.js
vendored
1
dist/index.js
vendored
@ -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
|
||||||
|
@ -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'));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user