File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -25,14 +25,18 @@ jobs:
25
25
steps :
26
26
- uses : actions/checkout@v3
27
27
28
+ - name : Set outputs
29
+ id : vars
30
+ run : echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
31
+
28
32
- name : Comment Credentials
29
33
uses : marocchino/sticky-pull-request-comment@v2
30
34
with :
31
35
header : codercom-preview-docs
32
36
message : |
33
37
✨ Coder.com for PR #${{ github.event.number }} deployed! It will be updated on every commit.
34
38
35
- * _Host_: https://coder.com/docs/coder/${{ github.event.pull_request.head.sha }}
39
+ * _Host_: https://coder.com/docs/coder/${{ steps.vars.outputs.sha_short }}
36
40
* _Last deploy status_: success
37
41
* _Commit_: ${{ github.event.pull_request.head.sha }}
38
42
* _Workflow status_: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
You can’t perform that action at this time.
0 commit comments