Merge pull request #1925 from marcosnils/fix/netlify_action

Change prod flag to avoid erros on new projects
This commit is contained in:
Andrea Luzzardi 2022-03-29 11:46:59 -07:00 committed by GitHub
commit 9dc30eac9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,6 +15,7 @@ create_site() {
# shellcheck disable=SC2181 # shellcheck disable=SC2181
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
>&2 echo "Error creating site [${NETLIFY_SITE_NAME}] for account [${NETLIFY_ACCOUNT}]"
cat body >&2 cat body >&2
exit 1 exit 1
fi fi
@ -47,7 +48,7 @@ netlify link --id "$site_id"
netlify deploy \ netlify deploy \
--build \ --build \
--site="$site_id" \ --site="$site_id" \
--prodIfUnlocked | --prod |
tee /tmp/stdout tee /tmp/stdout
url="$(grep </tmp/stdout Website | grep -Eo 'https://[^ >]+' | head -1)" url="$(grep </tmp/stdout Website | grep -Eo 'https://[^ >]+' | head -1)"