From 200c644fca72efa03f84ad0c0e0bba00e6faa6e2 Mon Sep 17 00:00:00 2001 From: Vilius Sutkus '89 Date: Wed, 25 Mar 2026 00:11:16 +0200 Subject: [PATCH] Add cmdline-tools version 20.0 ( 14742923 ) --- .github/workflows/build-test.yml | 1 + README.md | 3 ++- action.yml | 2 +- dist/index.js | 2 ++ src/main.ts | 2 ++ 5 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 8d47690..4c91711 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -66,6 +66,7 @@ jobs: - windows-2025 - windows-2022 cmdline-tools-version: + - 14742923 - 12266719 - 11479570 - 11076708 diff --git a/README.md b/README.md index 5ada237..4c5e718 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ Additional packages can be installed at a later time by calling sdkmanager manua Command line tools are versioned using two variables - short and long. Long one is the build number, used in the zip URL, short one is the human friendly version name. -By default, setup-android installs version 12266719 (short version 16.0). +By default, setup-android installs version 14742923 (short version 20.0). To install a different version, call setup-android with desired long version as the input parameter `cmdline-tools-version`: ```yaml @@ -74,6 +74,7 @@ To install a different version, call setup-android with desired long version as #### Version table | Short version | Long version | |---------------| --- | +| 20.0 | 14742923 | | 16.0 | 12266719 | | 13.0 | 11479570 | | 12.0 | 11076708 | diff --git a/action.yml b/action.yml index 24753b3..d64b2b4 100644 --- a/action.yml +++ b/action.yml @@ -6,7 +6,7 @@ inputs: cmdline-tools-version: description: 'cmdline-tools-version. See https://developer.android.com/studio#command-line-tools-only' required: false - default: '12266719' + default: '14742923' accept-android-sdk-licenses: description: 'Android SDK is usable only after the license agreement. Should setup-android agree to the licences, provided by "sdkmanager --licenses"' diff --git a/dist/index.js b/dist/index.js index 068dbca..7aa29b8 100644 --- a/dist/index.js +++ b/dist/index.js @@ -28243,6 +28243,8 @@ const fs = __importStar(__nccwpck_require__(9896)); const os = __importStar(__nccwpck_require__(857)); function getVersionShort(versionLong) { switch (versionLong) { + case '14742923': + return '20.0'; case '12266719': return '16.0'; case '11479570': diff --git a/src/main.ts b/src/main.ts index 02b492f..6e08553 100644 --- a/src/main.ts +++ b/src/main.ts @@ -7,6 +7,8 @@ import * as os from 'os' function getVersionShort(versionLong: string): string { switch (versionLong) { + case '14742923': + return '20.0' case '12266719': return '16.0' case '11479570':