Skip to content

Commit a0f044f

Browse files
authored
chore: use hash of pull request head in preview message (coder#221)
Show the commit hash of the HEAD of the pull request, rather than ${{ github.sha }}, which is a strange internal hash.
1 parent 4633687 commit a0f044f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/preview.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,5 @@ jobs:
7373
7474
* _Host_: ${{ steps.preview.outputs.url }}/docs
7575
* _Last deploy status_: ${{ steps.preview.outcome }}
76-
* _Commit_: ${{ github.sha }}
76+
* _Commit_: ${{ github.event.pull_request.head.sha }}
7777
* _Workflow status_: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}

0 commit comments

Comments
 (0)