From 37b84ae003e4a620e587e438d1f8ab97c5a324c5 Mon Sep 17 00:00:00 2001 From: Vitaly Turovsky Date: Tue, 10 Dec 2024 07:17:11 +0300 Subject: [PATCH] ci: fix use pr commit SHA, not base branch --- .github/workflows/preview.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index d066effe0..7fe5998b5 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -57,7 +57,7 @@ jobs: run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} - name: Write Release Info run: | - echo "{\"latestTag\": \"$(git rev-parse --short $GITHUB_SHA)\"}" > assets/release.json + echo "{\"latestTag\": \"$(git rev-parse --short ${{ github.event.pull_request.head.sha }})\"}" > assets/release.json - name: Build Project Artifacts run: vercel build --token=${{ secrets.VERCEL_TOKEN }} - run: pnpm build-storybook @@ -73,7 +73,7 @@ jobs: - name: Write commit redirect index.html run: | mkdir -p .vercel/output/static/commit - echo "" > .vercel/output/static/commit/index.html + echo "" > .vercel/output/static/commit/index.html - name: Download Generated Sounds map run: node scripts/downloadSoundsMap.mjs - name: Deploy Project Artifacts to Vercel