Skip to content

Commit b0aa650

Browse files
committed
ok
1 parent fb866aa commit b0aa650

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/preview.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
issue_number: context.issue.number,
2929
owner: context.repo.owner,
3030
repo: context.repo.repo,
31-
ref: context.sha,
31+
ref: ${{ github.event.pull_request.head.ref }},
3232
transient_environment: true,
3333
environment: `preview-${context.issue.number}`,
3434
description: `Preview deployment for PR ${context.issue.number}`,
@@ -109,7 +109,7 @@ jobs:
109109
deployment_id: ${{ steps.deployment.outputs.result }},
110110
state: "success",
111111
description: "Deployment completed",
112-
target_url: `https://d2euvt1bxklciq.cloudfront.net/${process.env.GITHUB_REPOSITORY}/pull/${{ github.event.pull_request.number}}`,
112+
environment_url: `https://d2euvt1bxklciq.cloudfront.net/${{ github.repository }}/pull/${{ github.event.pull_request.number}}`,
113113
})
114114
115115
- name: Update Deployment Status on Failure

0 commit comments

Comments
 (0)