Skip to content

Commit

Permalink
Update ci-website.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-ju committed Jan 21, 2025
1 parent d8225bd commit a2e092f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/ci-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a2e092f

Please sign in to comment.