From 43dc99054e423a8c6601b8f09fd01400f1b7ec1c Mon Sep 17 00:00:00 2001 From: Sebastian Quintero Date: Thu, 12 Sep 2024 13:17:20 -0500 Subject: [PATCH] Fix environments syntax --- .github/workflows/release.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d73df8e..e644e13 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,11 +34,15 @@ jobs: - name: Set environments id: set-environments run: | + ENVIRONMENTS="" if [ "${{ inputs.TARGET_ENVIRONMENT }}" != "" ]; then - echo "environments=${{ inputs.TARGET_ENVIRONMENT }}" >> $GITHUB_OUTPUT - exit 0 + echo "These are the environments to release => ${{ inputs.TARGET_ENVIRONMENT }}" + ENVIRONMENTS="['${{ inputs.TARGET_ENVIRONMENT }}']" + else + ENVIRONMENTS="['staging', 'prod']" fi - echo "environments=staging,prod" >> $GITHUB_OUTPUT + echo "These are the environments to release => ${ENVIRONMENTS}" + echo "environments=${ENVIRONMENTS}" >> $GITHUB_OUTPUT update_apps: runs-on: ubuntu-latest needs: determine_environments