Skip to content

Latest commit

 

History

History
61 lines (44 loc) · 1.53 KB

README.md

File metadata and controls

61 lines (44 loc) · 1.53 KB

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/[email protected]
  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/[email protected]
  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/[email protected]
  id: nex_version_code
  with:
    serviceAccountJsonFile: service-account.json
    packageName: com.your.packageName
- name: Putting version code into app/build.gradle
  uses: chkfung/[email protected]
  with:
    gradlePath: app/build.gradle
    versionCode: ${{steps.nex_version_code.outputs.nexVersionCode}}