File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 11import crypto from "node:crypto" ;
2- import fs from "node:fs/promises" ;
32import process from "node:process" ;
43import * as url from "node:url" ;
54import core from "@actions/core" ;
@@ -18,13 +17,12 @@ export default async function () {
1817 const password = core . getInput ( "password" , { required : true } ) ;
1918 core . setSecret ( password ) ;
2019
21- // Create a temporary directory for authenticated session state
20+ // Determine storage path for authenticated session state
21+ // Playwright will create missing directories, if needed
2222 const actionDirectory = `${ url . fileURLToPath ( new URL ( import . meta. url ) ) } /..` ;
23- const sessionStateDirectory = `${
23+ const sessionStatePath = `${
2424 process . env . RUNNER_TEMP ?? actionDirectory
25- } /.auth/${ crypto . randomUUID ( ) } `;
26- await fs . mkdir ( sessionStateDirectory , { recursive : true } ) ;
27- const sessionStatePath = `${ sessionStateDirectory } /sessionState.json` ;
25+ } /.auth/${ crypto . randomUUID ( ) } /sessionState.json`;
2826
2927 // Launch a headless browser
3028 browser = await playwright . chromium . launch ( {
You can’t perform that action at this time.
0 commit comments