File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 7
7
GITHUB_TOKEN = os .environ ['GITHUB_TOKEN' ]
8
8
REPOSITORY = os .environ ['REPOSITORY' ]
9
9
PULL_REQUEST_NUMBER = os .environ ['PULL_REQUEST_NUMBER' ]
10
+ REF = os .environ ['REF' ]
10
11
11
12
m = re .search (r'https://(\S+)\.workers\.dev' , DEPLOY_OUTPUT )
12
13
assert m , f'Could not find worker URL in { DEPLOY_OUTPUT !r} '
42
43
43
44
<table>
44
45
<tr>
46
+ <td><strong>commit:</strong></td>
47
+ <td><code>{ REF :.7} </code></td>
48
+ </tr>
49
+ <tr>
45
50
<td><strong>Preview URL:</strong></td>
46
51
<td><a href="{ preview_url } ">{ preview_url } </a></td>
47
52
</tr>
Original file line number Diff line number Diff line change 94
94
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
95
95
REPOSITORY : ${{ github.repository }}
96
96
PULL_REQUEST_NUMBER : ${{ github.event.workflow_run.pull_requests[0].number }}
97
+ REF : ${{ github.event.workflow_run.head_sha }}
You can’t perform that action at this time.
0 commit comments