Avoiding installing the same version multiple times (#252)
This commit is contained in:
parent
13b852df87
commit
c20f59e04a
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue