Skip to content

Commit 8fe01e1

Browse files
committed
feat: add Updatecli automation for Android SDK components
Add automated version checking for: - Android command-line tools (currently 13114758) - Android build tools (currently 35.x series) The manifest scrapes developer.android.com to detect new versions and automatically creates PRs when updates are available. Runs weekly via .github/workflows/updatecli.yaml
1 parent 96142b8 commit 8fe01e1

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed

updatecli/updatecli.d/android.yaml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
---
2+
name: Bump Android SDK components in android agent
3+
4+
scms:
5+
default:
6+
kind: github
7+
spec:
8+
user: "{{ .github.user }}"
9+
email: "{{ .github.email }}"
10+
owner: "{{ .github.owner }}"
11+
repository: "{{ .github.repository }}"
12+
token: "{{ requiredEnv .github.token }}"
13+
username: "{{ .github.username }}"
14+
branch: "{{ .github.branch }}"
15+
16+
sources:
17+
androidCommandLineTools:
18+
kind: shell
19+
spec:
20+
command: 'curl -sL https://developer.android.com/studio | grep -oP "commandlinetools-linux-\K\d+(?=_latest\.zip)" | head -1'
21+
environments:
22+
- name: PATH
23+
24+
androidBuildTools:
25+
kind: shell
26+
spec:
27+
command: 'curl -sL https://developer.android.com/tools/releases/build-tools | grep -oP "(\d+\.\d+\.\d+)" | grep "^35\." | head -1'
28+
environments:
29+
- name: PATH
30+
31+
conditions:
32+
33+
targets:
34+
androidCommandLineToolsURL:
35+
name: "[android-agent] Update command-line tools version in Dockerfile"
36+
kind: file
37+
spec:
38+
file: dockerfiles/android/Dockerfile
39+
matchpattern: 'commandlinetools-linux-(\d+)_latest\.zip'
40+
replacepattern: 'commandlinetools-linux-{{ source "androidCommandLineTools" }}_latest.zip'
41+
sourceid: androidCommandLineTools
42+
scmid: default
43+
44+
androidBuildToolsVersion:
45+
name: "[android-agent] Update build tools version in Dockerfile"
46+
kind: dockerfile
47+
spec:
48+
file: dockerfiles/android/Dockerfile
49+
instruction:
50+
keyword: "ARG"
51+
matcher: "ANDROID_BUILD_TOOLS_VERSION"
52+
sourceid: androidBuildTools
53+
scmid: default
54+
55+
actions:
56+
default:
57+
kind: github/pullrequest
58+
scmid: default
59+
title: '[Android] Bump Android SDK components to latest versions'
60+
spec:
61+
labels:
62+
- dependencies
63+
- android

0 commit comments

Comments
 (0)