You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature Request: Build number for google play includes unpublished/draft AABs #400
I have scheduled builds for my app that I occasionally don't publish. These builds have an incremented version number but subsequent builds don't appear to use those version numbers as the max versions (see build 661fef97c0e7002274bcc8d0).
As a workaround, I've set the YAML to increment the max build number by 20, but it would be nice if this script got the "true" maximum version code from all AABs that are in the google play repository, regardless of whether or not they're published or even in a track.
@cdanek, thanks for opening the issue. The action google-play get-latest-build-number is designed to obtain latest build numbers only from tracks. Altering its behaviour to work also with builds that do not belong to any tracks would be a significant change, and possibly breaking to many current users.
While it is be possible to paginate over all the uploaded app bundles and apks for given package name, performing such a request is indeterminately expensive since we cannot know up front how many builds there are. Limiting our search space just to tracks gives a very well isolated scope in which the search has to be carried out.
As a workaround to you issue, couldn't you push your releases to some custom track to ensure that their build number can always be discovered?
On cost: edits.bundles.list and edits.apks.list aren't paginated (no page token in the API), so it's always 2 extra requests in the same edit, not an unbounded scan.
I have it implemented with tests and regenerated docs. Would you be open to a PR?
Activity
priitlatt commentedon Apr 23, 2024
@cdanek, thanks for opening the issue. The action
google-play get-latest-build-numberis designed to obtain latest build numbers only from tracks. Altering its behaviour to work also with builds that do not belong to any tracks would be a significant change, and possibly breaking to many current users.While it is be possible to paginate over all the uploaded app bundles and apks for given package name, performing such a request is indeterminately expensive since we cannot know up front how many builds there are. Limiting our search space just to tracks gives a very well isolated scope in which the search has to be carried out.
As a workaround to you issue, couldn't you push your releases to some custom track to ensure that their build number can always be discovered?
Ultranmus commentedon Nov 18, 2026
Hi @priitlatt, I ran into this too with auto-versioning, so I took a stab at it in a way that I hope addresses your concerns:
--include-uploaded-buildsflag (mutually exclusive with--tracks), so the default behaviour doesn't change, similar to how--all-versionswas added in Add--all-versionsflag to latest-build-number actions #497.edits.bundles.listandedits.apks.listaren't paginated (no page token in the API), so it's always 2 extra requests in the same edit, not an unbounded scan.I have it implemented with tests and regenerated docs. Would you be open to a PR?
priitlatt commentedon Nov 20, 2026
@Ultranmus, we're very much open for PRs and all sort of contributions! I'm looking forward to review your solution.
Add `--include-uploaded-builds` to `google-play get-latest-build-number`
Add `--include-uploaded-builds` to `google-play get-latest-build-numb…
priitlatt commentedon Nov 25, 2026
Fix by @Ultranmus from #512 was released as version 0.73.0.