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