From 385844c33658d200dea637982605c0673a9b9e4b Mon Sep 17 00:00:00 2001 From: Nihal Agazade <43378371+icarusdust@users.noreply.github.com> Date: Mon, 10 Jun 2024 19:46:05 +0300 Subject: [PATCH] Adding build inputs (#2585) * Adding build inputs * Update yaml-getting-started.md * Update yaml-getting-started.md * Update yaml-getting-started.md * Update yaml-getting-started.md --- content/yaml-basic-configuration/yaml-getting-started.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/content/yaml-basic-configuration/yaml-getting-started.md b/content/yaml-basic-configuration/yaml-getting-started.md index f241f024..12e7fe69 100644 --- a/content/yaml-basic-configuration/yaml-getting-started.md +++ b/content/yaml-basic-configuration/yaml-getting-started.md @@ -120,6 +120,10 @@ workflows: - ${TENANT_NAME} instance_type: mac_mini_m1 max_build_duration: 60 + inputs: # more information about build inputs:https://docs.codemagic.io/knowledge-codemagic/build-inputs/ + name: # input ID + description: Input description + default: Codemagic environment: groups: - group_name @@ -139,6 +143,7 @@ workflows: source: true cancel_previous_builds: false scripts: + - echo "Hello, ${{ inputs.name }}" - ... artifacts: - build/**/outputs/bundle/**/*.aab @@ -185,6 +190,10 @@ The main sections in each workflow are described below. **Note:** The `linux_x2` and `windows_x2` are only available for teams and users with [billing enabled](../billing/billing/). `mac_mini_m2` is only available on fixed price annual plan. {{}} +### Build inputs + +Build inputs are parameters that allow you to customize your build configurations right before starting a new build without hardcoding them in **codemagic.yaml**. For example, build inputs can be used to determine whether to build the workflow for test or release purposes or which Xcode version to use, etc. More information about how to configure build inputs and examples can be found [here](https://docs.codemagic.io/knowledge-codemagic/build-inputs/]). + ### Environment `environment:` section specifies the environment variables and their respective group and build machine software versions.