acolombo25 / android-version-actions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

android-version-action v1.2

Override your android version number and version code through github actions

Features

  • Override version number to bump version through github actions
  • Override version name

Parameters

gradlePath Required, File path to the Path to the build.gradle file so that it knows where to find the file that contains the versionCode and versionName attributes.

versionCode Optional, Version Code to override

versionName Optional, Version Name to override

versionCodeSuffix Optional, suffix to add at the end of Version Code

versionNameSuffix Optional, suffix to add at the end of Version Name

Example

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2
      - name: set up JDK 1.8
        uses: actions/setup-java@v1
        with:
          java-version: 1.8
      - name: Bump version
        uses: acolombo25/android-version-actions@v1.2
        with:
          gradlePath: app/build.gradle.kts
          versionCodeSuffix: ${{github.run_number}}
          versionNameSuffix: .${{github.run_number}}

About


Languages

Language:JavaScript 100.0%