Skip to content

penrosehill/google-play-next-version-code

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 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/[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}}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 100.0%