Avoiding installing the same version multiple times (#252)

This commit is contained in:
Adam Ralph authored and GitHub committed 2021-12-29 14:07:42 +03:00
1 parent 13b852df87
commit c20f59e04a
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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();
}