Skip to content

Commit

Permalink
another workflow update
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasSilbernagel committed Nov 9, 2024
1 parent 6b35984 commit a35e63e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: lts/*
cache: 'pnpm'

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: latest

- uses: actions/setup-node@v4
with:
node-version: lts/*
cache: 'pnpm'

- name: Install dependencies
run: pnpm install

Expand All @@ -38,10 +38,10 @@ jobs:
while [ $elapsed -lt $max_wait ]; do
PR_NUMBER=${{ github.event.pull_request.number }}
DEPLOYMENTS=$(curl -H "Authorization: Bearer ${{ secrets.VERCEL_TOKEN }}" \
"https://api.vercel.com/v5/now/deployments")
"https://api.vercel.com/v5/now/deployments")
PREVIEW_URL=$(echo $DEPLOYMENTS | jq -r --arg prNum "$PR_NUMBER" \
'.deployments[] | select(.meta.githubPrId == $prNum and .state == "READY") | .url' | head -n 1)
'.deployments[] | select(.meta.githubPrId == $prNum and .state == "READY") | .url' | head -n 1)
if [ ! -z "$PREVIEW_URL" ]; then
if [[ $PREVIEW_URL != http* ]]; then
Expand Down

0 comments on commit a35e63e

Please sign in to comment.