You've already forked setup-dotnet
mirror of
https://github.com/actions/setup-dotnet.git
synced 2025-11-26 09:06:44 +07:00
Support multiple versions in single invocation (#240)
This commit is contained in:
committed by
GitHub
parent
e3ce4164b3
commit
550702114f
@ -165,6 +165,12 @@ export class DotnetCoreInstaller {
|
||||
});
|
||||
}
|
||||
|
||||
if (resultCode != 0) {
|
||||
throw new Error(`Failed to install dotnet ${resultCode}. ${output}`);
|
||||
}
|
||||
}
|
||||
|
||||
static addToPath() {
|
||||
if (process.env['DOTNET_INSTALL_DIR']) {
|
||||
core.addPath(process.env['DOTNET_INSTALL_DIR']);
|
||||
core.exportVariable('DOTNET_ROOT', process.env['DOTNET_INSTALL_DIR']);
|
||||
@ -189,10 +195,6 @@ export class DotnetCoreInstaller {
|
||||
}
|
||||
|
||||
console.log(process.env['PATH']);
|
||||
|
||||
if (resultCode != 0) {
|
||||
throw new Error(`Failed to install dotnet ${resultCode}. ${output}`);
|
||||
}
|
||||
}
|
||||
|
||||
// versionInfo - versionInfo of the SDK/Runtime
|
||||
|
||||
Reference in New Issue
Block a user