diff --git a/.github/workflows/beta-deployment.yml b/.github/workflows/beta-deployment.yml index 2ec5a43..8db2522 100644 --- a/.github/workflows/beta-deployment.yml +++ b/.github/workflows/beta-deployment.yml @@ -49,12 +49,10 @@ jobs: - name: Determine Environment id: set-env run: | - if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then - echo "environment=${{ inputs.environment }}" >> $GITHUB_OUTPUT - elif [[ "${{ github.event_name }}" == "workflow_call" ]]; then - echo "environment=${{ inputs.environment }}" >> $GITHUB_OUTPUT - else + if [[ -z "${{ inputs.environment }}" ]]; then echo "environment=staging" >> $GITHUB_OUTPUT + else + echo "environment=${{ inputs.environment }}" >> $GITHUB_OUTPUT fi vars: name: Inject Environment Variables In Deployment Workflow