diff --git a/.github/actions/build_android/action.yml b/.github/actions/build_android/action.yml index 7b5561c2..b816ec81 100644 --- a/.github/actions/build_android/action.yml +++ b/.github/actions/build_android/action.yml @@ -50,6 +50,13 @@ runs: with: build_type: ${{ inputs.build_type }} + - 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: "[dev] Build Android app (apk)" if: ${{ inputs.build_type == 'development' }} run: | diff --git a/.github/actions/setup_flutter_environment/action.yml b/.github/actions/setup_flutter_environment/action.yml index 3eb5c16f..20ec2f6d 100644 --- a/.github/actions/setup_flutter_environment/action.yml +++ b/.github/actions/setup_flutter_environment/action.yml @@ -28,13 +28,6 @@ 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