diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 49a2c0228..18a7c7bc4 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -47,7 +47,7 @@ jobs: - name: Build & notify if: env.TELEGRAM_CHAT_ID && env.SCHEDULED_BUILD_VARIANT && env.TELEGRAM_TOKEN run: | - ./gradlew $SCHEDULED_BUILD_VARIANT + ./gradlew ${SCHEDULED_BUILD_VARIANT} -v env: ALPHA_KS_ALIAS: ${{ vars.ALPHA_KS_ALIAS }} ALPHA_KS_FILE: ${{ vars.ALPHA_KS_FILE }} diff --git a/app/build.gradle b/app/build.gradle index c70df4462..2a9a5845f 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -123,7 +123,7 @@ android { dimension "releaseType" // getPackageInfo().versionCode not returning the correct value (in prod builds) when // value is set in AndroidManifest.xml so setting it here - versionCode = System.getenv("VERSION_CODE") + versionCode = Integer.parseInt(System.getenv("VERSION_CODE")) versionName = gitVersion vectorDrawables.useSupportLibrary = true }