From a6431150195f2d695f9924033f1965414f239b3e Mon Sep 17 00:00:00 2001 From: UnknownErrror Date: Mon, 27 Nov 2023 00:14:07 +0300 Subject: [PATCH] Update --- .github/workflows/build-debug.yml | 6 +++--- .github/workflows/validate-gradle.yml | 17 +++++++++++++++++ 2 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/validate-gradle.yml diff --git a/.github/workflows/build-debug.yml b/.github/workflows/build-debug.yml index e9025fd..34207d6 100644 --- a/.github/workflows/build-debug.yml +++ b/.github/workflows/build-debug.yml @@ -1,5 +1,4 @@ name: Build APK (debug) -run-name: Build (${{ github.event_name }}) on: workflow_dispatch: @@ -18,7 +17,8 @@ jobs: - uses: actions/checkout@v4 - run: | - APP_VERSION="v$(cat ./app/build.gradle | grep -m1 versionName | awk -F'"' '{ print $2; }')" + APP_VERSION="v$(cat ./app/build.gradle | grep -m1 versionName | awk -F'"' '{ print $2; }')" || + APP_VERSION="v$(cat ./app/build.gradle.kts | grep -m1 versionName | awk -F'"' '{ print $2; }')" echo APP_VERSION="$APP_VERSION" >> "$GITHUB_ENV" echo APP_NAME="${{ github.event.repository.name }}_${APP_VERSION}-DEBUG#${{ github.run_number }}" >> "$GITHUB_ENV" @@ -28,7 +28,7 @@ jobs: - uses: errr-maxx-builds/android-setup-build-env@master with: - usePatchedSDK: true + usePatchedSDK: true # custom - uses: errr-maxx-builds/android-build-apk@master with: buildType: debug diff --git a/.github/workflows/validate-gradle.yml b/.github/workflows/validate-gradle.yml new file mode 100644 index 0000000..7e546a2 --- /dev/null +++ b/.github/workflows/validate-gradle.yml @@ -0,0 +1,17 @@ +name: Validate Gradle Wrapper + +on: + push: + branches: [master, main] + paths-ignore: ['*.md'] + pull_request: + branches: [master, main] + paths-ignore: ['*.md'] + +jobs: + validation: + name: Gradle Validation + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: gradle/wrapper-validation-action@v1