diff --git a/.github/actions/get-env-details/action.yml b/.github/actions/get-env-details/action.yml index 1d067eb..c07735a 100644 --- a/.github/actions/get-env-details/action.yml +++ b/.github/actions/get-env-details/action.yml @@ -23,7 +23,10 @@ runs: id: cloud-platform shell: bash run: | - if [ '${{ inputs.environment }}' == 'dev' ]; then namespace='dev'; fi - if [ '${{ inputs.environment }}' == 'prod' ]; then namespace='prod'; fi - echo "namespace=${namespace}" | tee -a "$GITHUB_OUTPUT" - echo "values-file=values-${namespace}.yml" | tee -a "$GITHUB_OUTPUT" + if [ '${{ inputs.github_environment }}' == 'dev' ]; then + echo "namespace=${namespace}" + else + namespace="prod" + echo "namespace=${namespace}" | tee -a "$GITHUB_OUTPUT" + echo "values-file=values-${namespace}.yml" | tee -a "$GITHUB_OUTPUT" + fi