Skip to content

mmachado53/google-play-next-version-code

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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}}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published