diff --git a/.github/workflows/ci-website.yml b/.github/workflows/ci-website.yml index 71a502d012..d9df58f37b 100644 --- a/.github/workflows/ci-website.yml +++ b/.github/workflows/ci-website.yml @@ -82,12 +82,9 @@ jobs: - name: Get Latest Vercel Deployment id: get_vercel_deployment run: | - DEPLOYMENT_INFO=$(curl -s -H "Authorization: Bearer ${{ secrets.VERCEL_TOKEN }}" \ + DEPLOYMENT_ID=$(curl -s -H "Authorization: Bearer ${{ secrets.VERCEL_TOKEN }}" \ "https://api.vercel.com/v6/deployments?teamId=${{ secrets.VERCEL_TEAM_ID }}&projectId=${{ secrets.VERCEL_WEBSITE_PROJECT_ID }}" \ - | jq -r --arg branch "${{ github.head_ref }}" '.deployments[] | select(.meta.githubCommitRef == $branch) | {url: .url, id: .uid}' | head -n 1) - DEPLOYMENT_URL=$(echo $DEPLOYMENT_INFO | jq -r '.url') - DEPLOYMENT_ID=$(echo $DEPLOYMENT_INFO | jq -r '.id') - echo "DEPLOYMENT_URL=$DEPLOYMENT_URL" >> $GITHUB_ENV + | jq -r --arg branch "${{ github.head_ref }}" '.deployments[] | select(.meta.githubCommitRef == $branch) | .uid' | head -n 1) echo "DEPLOYMENT_ID=$DEPLOYMENT_ID" >> $GITHUB_ENV - name: Alias Vercel Deployment id: alias_vercel_deployment