Skip to content

Feature Request: Build number for google play includes unpublished/draft AABs #400

Done

Description

@cdanek

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.

Activity

  1. priitlatt commented on Apr 23, 2024

    @priitlatt
    Contributor

    @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?

  2. Ultranmus commented on Nov 18, 2026

    @Ultranmus
    Contributor

    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:

    • It's an opt-in --include-uploaded-builds flag (mutually exclusive with --tracks), so the default behaviour doesn't change, similar to how --all-versions was added in Add --all-versions flag to latest-build-number actions #497.
    • 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?

  3. priitlatt commented on Nov 20, 2026

    @priitlatt
    Contributor

    @Ultranmus, we're very much open for PRs and all sort of contributions! I'm looking forward to review your solution.

  4. priitlatt commented on Nov 25, 2026

    @priitlatt
    Contributor

    Fix by @Ultranmus from #512 was released as version 0.73.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions