From 3a55ea05be9ea81e3494be123474dfb627a918a3 Mon Sep 17 00:00:00 2001 From: Saurabh Shrihar Date: Wed, 20 Mar 2024 15:26:08 +0400 Subject: [PATCH] Fix for error on setting app name --- .github/workflows/build_and_deploy.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_and_deploy.yml b/.github/workflows/build_and_deploy.yml index 9fd26cd..f692c94 100644 --- a/.github/workflows/build_and_deploy.yml +++ b/.github/workflows/build_and_deploy.yml @@ -43,8 +43,11 @@ jobs: - name: Determine APP name id: get_app_name run: | - echo "APP_NAME=${{ inputs.environment == 'prod' ? inputs.core_app_name : inputs.core_app_name-${{ inputs.environment }} }}" >> $GITHUB_ENV - + if [[ "${{ inputs.environment }}" == "prod" ]]; then + echo "APP_NAME=${{ inputs.core_app_name }}" >> $GITHUB_ENV + else + echo "APP_NAME=${{ inputs.core_app_name }}-${{ inputs.environment }}" >> $GITHUB_ENV + fi - name: Create taskdef file dynamically using parameters passed run: | export PIPENV_PIPFILE=.github/taskdefinition_template/Pipfile