From 392d29e84daea5087d272da85938b199cf11d3b3 Mon Sep 17 00:00:00 2001 From: Andrea Grillo Date: Thu, 26 Oct 2023 15:35:59 +0200 Subject: [PATCH] add comment --- .github/workflows/deploy_onboarding_ms.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/deploy_onboarding_ms.yml b/.github/workflows/deploy_onboarding_ms.yml index 7cd5d4c39..232f17169 100644 --- a/.github/workflows/deploy_onboarding_ms.yml +++ b/.github/workflows/deploy_onboarding_ms.yml @@ -23,6 +23,11 @@ on: env: DIR: "./.container_app" + # This condition (that unfortunately must be replicated for the first job) + # sets the environment depending on the current context for manually + # started workflows, it picks up the value coming from the UI; otherwise, + # it sets prod or uat depending on the current branch. + # Ternary operator is not supported ENV_NAME: "${{ inputs.environment != null && inputs.environment || (github.base_ref == 'main' && 'prod' || (github.base_ref == 'develop' && 'uat' || 'dev')) }}" jobs: