mirror of
https://github.com/actions/setup-dotnet.git
synced 2025-04-05 14:59:49 +00:00
Avoiding installing the same version multiple times (#252)
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user