diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index ff38469b..4b89a088 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -35,7 +35,7 @@ jobs: - name: Get app version id: get_version - run: echo ::set-output name=version_name::$(grep -oP 'versionName "\K(.*)(?=")' ${{ env.main_project_module }}/build.gradle)) + run: echo ::set-output name=version_name::$(grep -m1 "versionName" app/build.gradle | awk '{print $2}' | tr -d \''"\') - name: Change wrapper permissions run: chmod +x ./gradlew