File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 8
8
GITHUB_TOKEN = os .environ ['GITHUB_TOKEN' ]
9
9
REPOSITORY = os .environ ['REPOSITORY' ]
10
10
REF = os .environ ['REF' ]
11
- ENVIRONMENT = os . environ [ 'ENVIRONMENT' ]
11
+ ENVIRONMENT = 'deploy-preview'
12
12
13
13
m = re .search (r'https://(\S+)\.workers\.dev' , DEPLOY_OUTPUT )
14
14
assert m , f'Could not find worker URL in { DEPLOY_OUTPUT !r} '
29
29
deployment_url = f'https://api.github.com/repos/{ REPOSITORY } /deployments'
30
30
deployment_data = {
31
31
'ref' : REF ,
32
- 'task' : 'docs preview' ,
32
+ 'task' : f 'docs preview { version_id } ' ,
33
33
'environment' : ENVIRONMENT ,
34
34
'auto_merge' : False ,
35
35
'required_contexts' : [],
Original file line number Diff line number Diff line change 94
94
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
95
95
REPOSITORY : ${{ github.repository }}
96
96
REF : ${{ github.event.workflow_run.head_sha }}
97
- ENVIRONMENT : deploy-preview
You can’t perform that action at this time.
0 commit comments