mirror of
https://github.com/actions/setup-dotnet.git
synced 2025-04-06 23:39:47 +00:00
Avoiding installing the same version multiple times (#252)
This commit is contained in:
2
dist/index.js
vendored
2
dist/index.js
vendored
@ -8687,7 +8687,7 @@ function run() {
|
||||
const includePrerelease = (core.getInput('include-prerelease') || 'false').toLowerCase() ===
|
||||
'true';
|
||||
let dotnetInstaller;
|
||||
for (const version of versions) {
|
||||
for (const version of new Set(versions)) {
|
||||
dotnetInstaller = new installer.DotnetCoreInstaller(version, includePrerelease);
|
||||
yield dotnetInstaller.installDotnet();
|
||||
}
|
||||
|
Reference in New Issue
Block a user