The default workflow yaml file that was generated using the add new app flow resulted in builds automatically failing due to version mismatching
---
format_version: '4'
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: android
trigger_map:
- push_branch: "*"
workflow: primary
- pull_request_source_branch: "*"
workflow: primary
workflows:
deploy:
steps:
- activate-ssh-key@3.1.1:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone@3.5.1: {}
- cache-pull@1.0.0: {}
- script@1.1.4:
title: Do anything with Script step
- install-missing-android-tools@1.1.0: {}
- gradle-runner@1.7.6:
inputs:
- gradle_file: "$GRADLE_BUILD_FILE_PATH"
- gradle_task: assembleRelease
- gradlew_path: "$GRADLEW_PATH"
- deploy-to-bitrise-io@1.3.6: {}
- cache-push@1.1.4: {}
primary:
steps:
- activate-ssh-key@3.1.1:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone@3.5.1: {}
- cache-pull@1.0.0: {}
- script@1.1.4:
title: Do anything with Script step
- install-missing-android-tools@1.1.0: {}
- gradle-runner@1.7.6:
inputs:
- gradle_file: "$GRADLE_BUILD_FILE_PATH"
- gradle_task: assembleDebug
- gradlew_path: "$GRADLEW_PATH"
- deploy-to-bitrise-io@1.3.6: {}
- cache-push@1.1.4: {}
app:
envs:
- opts:
is_expand: false
GRADLE_BUILD_FILE_PATH: build.gradle
- opts:
is_expand: false
GRADLEW_PATH: "./gradlew"
Throws error
WARN[09:44:06] The bitrise.yml has a higher Format Version (4) than the bitrise CLI model's version (3).
FATA[09:44:07] Failed to create bitrise config, error: This bitrise.yml was created with and for a newer version of bitrise CLI, please upgrade your bitrise CLI to use this bitrise.yml