From fb17504deda6d488901e183e439a200e4b450976 Mon Sep 17 00:00:00 2001 From: Ruud Senden <8635138+rsenden@users.noreply.github.com> Date: Thu, 26 Oct 2023 17:57:45 +0200 Subject: [PATCH] chore: Attempt to fix fcli version aliases --- setup/dist/index.js | 5 ++++- setup/src/setup.ts | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/setup/dist/index.js b/setup/dist/index.js index 8267a06..f2b2d63 100644 --- a/setup/dist/index.js +++ b/setup/dist/index.js @@ -6671,8 +6671,11 @@ function updateFcliVersionAliases() { const minorAlias = version.substring(0, version.lastIndexOf('.')); const majorAlias = version.substring(0, version.indexOf('.')); if (!TOOLS["fcli"]["versionAliases"][minorAlias]) { - core.info(`${version} (${slug}) aliases: ${minorAlias} ${majorAlias}`); + core.info(`${version} (${slug}) alias: ${minorAlias}`); TOOLS["fcli"]["versionAliases"][minorAlias] = version; + } + if (!TOOLS["fcli"]["versionAliases"][majorAlias]) { + core.info(`${version} (${slug}) alias: ${majorAlias}`); TOOLS["fcli"]["versionAliases"][majorAlias] = version; } } diff --git a/setup/src/setup.ts b/setup/src/setup.ts index 8c8195c..ab59a4b 100644 --- a/setup/src/setup.ts +++ b/setup/src/setup.ts @@ -87,8 +87,11 @@ function updateFcliVersionAliases() { const minorAlias = version.substring(0, version.lastIndexOf('.')); const majorAlias = version.substring(0, version.indexOf('.')); if (!TOOLS["fcli"]["versionAliases"][minorAlias]) { - core.info(`${version} (${slug}) aliases: ${minorAlias} ${majorAlias}`); + core.info(`${version} (${slug}) alias: ${minorAlias}`); TOOLS["fcli"]["versionAliases"][minorAlias] = version; + } + if (!TOOLS["fcli"]["versionAliases"][majorAlias]) { + core.info(`${version} (${slug}) alias: ${majorAlias}`); TOOLS["fcli"]["versionAliases"][majorAlias] = version; } }