Skip to content

Get the next version code

Actions
An action to know the next version code of an app in google play console
v0.0.4
Latest
Star (2)

Next version code in google play console action

This action looks for the next valid version number to upload a new app or bundle in the play store console

Inputs

serviceAccountJsonFile

Required the path of the service-account.json file.

packageName

Required The Application Id of the app.

Outputs

nextVersionCode

The next valid version number to upload a new apk or bundle

Example usage

Basic

- uses: mmachado53/google-play-next-version-code@vx.x.x
  id: nexVersionCode
  with:
    serviceAccountJsonFile: ./service-account.json
    packageName: com.your.packageName

building the service-account.json from some secret example

- name: building service_account.json
  run: echo '${{ secrets.GOOGLE_PLAY_SERVICE_ACCOUNT_JSON }}' > service_account.json
- uses: mmachado53/google-play-next-version-code@vx.x.x
  id: nexVersionCode
  with:
    serviceAccountJsonFile: service-account.json
    packageName: com.your.packageName

Putting the version number in the code

- name: building service_account.json
  run: echo '${{ secrets.GOOGLE_PLAY_SERVICE_ACCOUNT_JSON }}' > service_account.json
- uses: mmachado53/google-play-next-version-code@vx.x.x
  id: nex_version_code
  with:
    serviceAccountJsonFile: service-account.json
    packageName: com.your.packageName
- name: Putting version code into app/build.gradle
  uses: chkfung/android-version-actions@v1.1
  with:
    gradlePath: app/build.gradle
    versionCode: ${{steps.nex_version_code.outputs.nexVersionCode}}

Get the next version code is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

An action to know the next version code of an app in google play console
v0.0.4
Latest

Get the next version code is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.