mirror of
https://github.com/actions/setup-dotnet.git
synced 2024-11-25 12:53:06 +07:00
Avoiding installing the same version multiple times (#252)
This commit is contained in:
parent
13b852df87
commit
c20f59e04a
2
dist/index.js
vendored
2
dist/index.js
vendored
@ -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
Block a user