File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 20
20
21
21
version_id = m .group (1 )
22
22
preview_url = f'https://{ version_id } -{ worker_name } .workers.dev'
23
+ print ('CloudFlare worker preview URL:' , preview_url )
23
24
24
25
gh_headers = {
25
26
'Accept' : 'application/vnd.github+json' ,
41
42
})
42
43
}
43
44
r = httpx .post (deployment_url , headers = gh_headers , json = deployment_data )
44
- print (f'POST { deployment_url } : { r .status_code } ' ) # {r.text}
45
+ print (f'POST { deployment_url } { r .status_code } { r .text } ' )
45
46
r .raise_for_status ()
46
47
deployment_id = r .json ()['id' ]
47
48
52
53
'state' : 'success' ,
53
54
}
54
55
r = httpx .post (status_url , headers = gh_headers , json = status_data )
55
- print (f'POST { status_url } : { r .status_code } ' ) # {r.text}
56
+ print (f'POST { status_url } { r .status_code } { r .text } ' )
56
57
r .raise_for_status ()
Original file line number Diff line number Diff line change 92
92
GITHUB_EVENT_JSON : ${{ toJSON(github.event) }}
93
93
94
94
- name : Set preview URL
95
- run : uv run --with httpx .github/set_docs_pr_preview_url.py
95
+ run : uv run --no-project -- with httpx .github/set_docs_pr_preview_url.py
96
96
env :
97
97
DEPLOY_OUTPUT : ${{ steps.deploy.outputs.command-output }}
98
98
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -346,12 +346,12 @@ jobs:
346
346
--var GIT_BRANCH:main
347
347
348
348
- name : Set preview URL
349
- run : uv run --with httpx .github/set_docs_main_preview_url.py
349
+ run : uv run --no-project -- with httpx .github/set_docs_main_preview_url.py
350
350
env :
351
351
DEPLOY_OUTPUT : ${{ steps.deploy.outputs.command-output }}
352
352
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
353
353
REPOSITORY : ${{ github.repository }}
354
- REF : ${{ github.event.workflow_run.head_sha }}
354
+ REF : ${{ github.sha }}
355
355
356
356
# TODO(Marcelo): We need to split this into two jobs: `build` and `release`.
357
357
release :
You can’t perform that action at this time.
0 commit comments