diff --git a/.github/actions/build_android/action.yml b/.github/actions/build_android/action.yml index 68ab7f90b..7b5561c24 100644 --- a/.github/actions/build_android/action.yml +++ b/.github/actions/build_android/action.yml @@ -74,6 +74,8 @@ runs: alias: ${{ inputs.alias }} keyStorePassword: ${{ inputs.keyStorePassword }} keyPassword: ${{ inputs.keyPassword }} + env: + BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOL_VERSION }} - name: "[prod] Upload app bundle" if: ${{ !!inputs.store_artifacts && inputs.build_type == 'production'}} diff --git a/.github/actions/setup_flutter_environment/action.yml b/.github/actions/setup_flutter_environment/action.yml index 20ec2f6d1..3eb5c16f5 100644 --- a/.github/actions/setup_flutter_environment/action.yml +++ b/.github/actions/setup_flutter_environment/action.yml @@ -28,6 +28,13 @@ runs: run: flutter pub get shell: bash + - name: Setup build tool version variable + shell: bash + run: | + BUILD_TOOL_VERSION=$(ls /usr/local/lib/android/sdk/build-tools/ | tail -n 1) + echo "BUILD_TOOL_VERSION=$BUILD_TOOL_VERSION" >> $GITHUB_ENV + echo Last build tool version is: $BUILD_TOOL_VERSION + - name: "[prod] Change target backend to production" if: ${{ inputs.build_type == 'production' }} run: sed -i'' -e 's/.env.develop/.env.production/' lib/env/env.dart