From 66cd5aef0ccf3a664bc1a2ad280ebe4ce041a30a Mon Sep 17 00:00:00 2001 From: garronej Date: Fri, 22 Apr 2022 18:22:28 +0200 Subject: [PATCH] always offer to download v11.0.3 --- .gitignore | 3 ++- src/bin/promptKeycloakVersion.ts | 15 +++++++++------ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index c2a1542e..e316f4c2 100644 --- a/.gitignore +++ b/.gitignore @@ -47,4 +47,5 @@ jspm_packages .idea -/keycloak_theme_email \ No newline at end of file +/keycloak_theme_email +/build_keycloak \ No newline at end of file diff --git a/src/bin/promptKeycloakVersion.ts b/src/bin/promptKeycloakVersion.ts index 56ee8277..b8e9a9c2 100644 --- a/src/bin/promptKeycloakVersion.ts +++ b/src/bin/promptKeycloakVersion.ts @@ -19,12 +19,15 @@ export async function promptKeycloakVersion() { console.log("Initialize the directory with email template from which keycloak version?"); - const tags = await getLatestsSemVersionedTag({ - "count": 15, - "doIgnoreBeta": true, - "owner": "keycloak", - "repo": "keycloak", - }).then(arr => arr.map(({ tag }) => tag)); + const tags = [ + ...(await getLatestsSemVersionedTag({ + "count": 10, + "doIgnoreBeta": true, + "owner": "keycloak", + "repo": "keycloak", + }).then(arr => arr.map(({ tag }) => tag))), + "11.0.3", + ]; if (process.env["GITHUB_ACTIONS"] === "true") { return { "keycloakVersion": tags[0] };