Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Orzomaxx committed Nov 26, 2023
1 parent a118370 commit a643115
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-debug.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: Build APK (debug)
run-name: Build (${{ github.event_name }})

on:
workflow_dispatch:
Expand All @@ -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"
Expand All @@ -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
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/validate-gradle.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a643115

Please sign in to comment.