File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 6
6
DEPLOY_OUTPUT = os .environ ['DEPLOY_OUTPUT' ]
7
7
GITHUB_TOKEN = os .environ ['GITHUB_TOKEN' ]
8
8
REPOSITORY = os .environ ['REPOSITORY' ]
9
+ REF = os .environ ['REF' ]
9
10
ENVIRONMENT = os .environ ['ENVIRONMENT' ]
10
11
11
12
m = re .search (r'https://(\S+)\.workers\.dev' , DEPLOY_OUTPUT )
26
27
27
28
deployment_url = f'https://api.github.com/repos/{ REPOSITORY } /deployments'
28
29
deployment_data = {
29
- 'ref' : '9616d25acd9d73e36b8e57032fc6bec7e9bb42f1' ,
30
+ 'ref' : REF ,
30
31
'task' : 'docs preview' ,
31
32
'environment' : ENVIRONMENT ,
32
33
}
Original file line number Diff line number Diff line change 88
88
DEPLOY_OUTPUT : ${{ steps.deploy.outputs.command-output }}
89
89
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
90
90
REPOSITORY : ${{ github.repository }}
91
+ REF : ${{ github.event.workflow_run.head_sha }}
91
92
ENVIRONMENT : deploy-preview
You can’t perform that action at this time.
0 commit comments