Skip to content

Commit

Permalink
Fix environments syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-quintero committed Sep 12, 2024
1 parent 5c6ea35 commit 43dc990
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 43dc990

Please sign in to comment.