From 9ac7be54d8664828e1fc3457110cd30472ded3e3 Mon Sep 17 00:00:00 2001 From: Dhenain Ambroise Date: Thu, 21 Jan 2021 17:28:58 +0100 Subject: [PATCH] Store GITHUB_PULL_REQUEST_ID (even if it's not used yet) + indent fix --- .github/workflows/deploy-vercel-production.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-vercel-production.yml b/.github/workflows/deploy-vercel-production.yml index ac5bb5abf..0d68288ba 100644 --- a/.github/workflows/deploy-vercel-production.yml +++ b/.github/workflows/deploy-vercel-production.yml @@ -104,7 +104,7 @@ jobs: echo "Custom aliases: " $VERCEL_DEPLOYMENT_ALIASES_JSON if [[ "$VERCEL_DEPLOYMENT_ALIASES_JSON" != "null" ]]; then - # Convert the JSON array into a bash array - See https://unix.stackexchange.com/a/615717/60329 + # Convert the JSON array into a bash array - See https://unix.stackexchange.com/a/615717/60329 readarray -t VERCEL_DEPLOYMENT_ALIASES < <(jq --raw-output '.alias[]' < vercel.$CUSTOMER_REF_TO_DEPLOY.production.json) # Count the number of element in the array, will be 0 if it's an empty array, or if the "alias" key wasn't defined @@ -142,6 +142,7 @@ jobs: VERCEL_DEPLOYMENT_URL=${{ env.VERCEL_DEPLOYMENT_URL }} VERCEL_DEPLOYMENT_DOMAIN=${{ env.VERCEL_DEPLOYMENT_DOMAIN }} MANUAL_TRIGGER_CUSTOMER=${{ env.MANUAL_TRIGGER_CUSTOMER }} + GITHUB_PULL_REQUEST_ID=${{ steps.pr_id_finder.outputs.number }} # Waits for the Vercel deployment to reach "READY" state, so that other actions will be applied on a domain that is really online await-for-vercel-deployment: