File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 55 workflow_dispatch :
66 inputs :
77 version :
8- description : ' Playwright Version'
8+ description : ' Playwright Version (Base)'
9+ default : ' '
10+ patchright_release :
11+ description : ' Patchright Release Version'
912 default : ' '
1013 # running every hour
1114 schedule :
5053 - name : Check Release Version
5154 id : version_check
5255 run : |
56+ echo "patchright_release=${{ github.event.inputs.patchright_release }}" >> $GITHUB_ENV
5357 if [ -n "${{ github.event.inputs.version }}" ]; then
5458 echo "proceed=true" >>$GITHUB_OUTPUT
5559 echo "playwright_version=${{ github.event.inputs.version }}" >> $GITHUB_ENV
Original file line number Diff line number Diff line change 44
55import toml
66
7- patchright_version = os .environ .get ('playwright_version' )
8- # patchright_version = "1.55.2"
7+ patchright_version = os .environ .get ('patchright_release' ) or os .environ .get ('playwright_version' )
98
109def patch_file (file_path : str , patched_tree : ast .AST ) -> None :
1110 with open (file_path , "w" ) as f :
@@ -421,6 +420,8 @@ async def route_handler(route: Route) -> None:
421420 if isinstance (node , ast .AsyncFunctionDef ) and node .name == "start" :
422421 node .body .insert (0 , ast .parse ("await self._parent.install_inject_route()" ))
423422
423+ patch_file ("playwright-python/playwright/_impl/_tracing.py" , tracing_tree )
424+
424425# Patching playwright/async_api/_generated.py
425426with open ("playwright-python/playwright/async_api/_generated.py" ) as f :
426427 async_generated_source = f .read ()
You can’t perform that action at this time.
0 commit comments