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
@@ -28,7 +28,7 @@ export async function run() {
(core.getInput('include-prerelease') || 'false').toLowerCase() ===
'true';
let dotnetInstaller!: installer.DotnetCoreInstaller;
for (const version of versions) {
for (const version of new Set<string>(versions)) {
dotnetInstaller = new installer.DotnetCoreInstaller(
version,
includePrerelease