mirror of
https://github.com/android-actions/setup-android.git
synced 2026-09-21 06:11:09 +00:00
7731365548
Google no longer serves the `tools` package: it is gone from repository2-3.xml, so `sdkmanager tools` fails with "Failed to find package 'tools'" and takes the whole action down with it. - Drop `tools` from the default value of the `packages` input, leaving `platform-tools`. The command line tools that replaced it are already installed by this action, and there is no bare `cmdline-tools` package path to install instead (only versioned ones, e.g. `cmdline-tools;20.0`). - Skip `tools` with a warning when it is requested explicitly, so the many workflows that pass `packages: 'tools platform-tools'` keep working instead of failing. - Update the README accordingly. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
33 lines
926 B
YAML
33 lines
926 B
YAML
name: 'Setup Android SDK Tools'
|
|
author: 'Android-Actions'
|
|
description: 'Setup the Android SDK Tools and add them to the path'
|
|
|
|
inputs:
|
|
cmdline-tools-version:
|
|
description: 'cmdline-tools-version. See https://developer.android.com/studio#command-line-tools-only'
|
|
required: false
|
|
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"'
|
|
required: false
|
|
default: 'true'
|
|
|
|
log-accepted-android-sdk-licenses:
|
|
description: 'Should accepted licenses be logged. If not, accepted licences will be accepted silently'
|
|
required: false
|
|
default: 'true'
|
|
|
|
packages:
|
|
description: 'Additional packages to install'
|
|
required: false
|
|
default: 'platform-tools'
|
|
|
|
runs:
|
|
using: node24
|
|
main: 'dist/index.js'
|
|
|
|
branding:
|
|
icon: 'list'
|
|
color: 'green'
|