Skip to content

Commit 374ce0f

Browse files
committed
Fix PR preview deployment
1 parent 34ddab6 commit 374ce0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/preview-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
if: github.event_name != 'pull_request' || steps.check-files.outputs.any_changed == 'true'
5252
uses: actions/checkout@v4
5353
with:
54-
persist-credentials: false # test
54+
persist-credentials: false
5555

5656
- name: Generate path prefix
5757
env:
@@ -78,7 +78,7 @@ jobs:
7878
id: metadata
7979
env:
8080
PR_NUMBER: ${{ github.event.pull_request.number }}
81-
REF: ${{ github.sha }}
81+
REF: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha ||github.sha }}
8282
SHOULD_DEPLOY: ${{ github.event_name == 'pull_request' && steps.check-files.outputs.any_changed || 'true' }}
8383
run: |
8484
cat << EOF > deployment_metadata.json

0 commit comments

Comments
 (0)