ci: prospective; figure out why environment URL isn't being set

This commit is contained in:
41666 2020-12-17 17:17:30 -05:00
parent 8f5f8bc99b
commit 9cdefefbcc

View file

@ -107,16 +107,19 @@ jobs:
ENV_NAME= ENV_NAME=
if [[ "${{github.event.inputs.environment}}" == "prod" ]]; then if [[ "${{github.event.inputs.environment}}" == "prod" ]]; then
ENV_URL=https://next.roleypoly.com ENV_URL="https://next.roleypoly.com"
ENV_NAME=Production ENV_NAME=Production
elif [[ "${{github.event.inputs.environment}}" == "stage" ]]; then elif [[ "${{github.event.inputs.environment}}" == "stage" ]]; then
ENV_URL=https://web-stage.roleypoly.com ENV_URL="https://web-stage.roleypoly.com"
ENV_NAME=Staging ENV_NAME=Staging
else else
ENV_URL=https://web-${{github.event.inputs.environment}}.roleypoly.com ENV_URL="https://web-${{github.event.inputs.environment}}.roleypoly.com"
ENV_NAME=Preview-${{github.event.inputs.environment}} ENV_NAME=Preview-${{github.event.inputs.environment}}
fi fi
echo "url=$ENV_URL"
echo "env=$ENV_NAME"
echo ::set-output name=url::$ENV_URL echo ::set-output name=url::$ENV_URL
echo ::set-output name=env::$ENV_NAME echo ::set-output name=env::$ENV_NAME