diff --git a/dist/setup/index.js b/dist/setup/index.js index ce37444..f2dc045 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -129618,7 +129618,7 @@ async function run() { } } function detectEmptyWorkdir() { - if (node_fs_1.default.readdirSync(".").length === 0) { + if (node_fs_1.default.readdirSync(inputs_1.workingDirectory).length === 0) { if (inputs_1.ignoreEmptyWorkdir) { core.info("Empty workdir detected. Ignoring because ignore-empty-workdir is enabled"); } diff --git a/src/setup-uv.ts b/src/setup-uv.ts index 03b2434..3968016 100644 --- a/src/setup-uv.ts +++ b/src/setup-uv.ts @@ -73,7 +73,7 @@ async function run(): Promise { } function detectEmptyWorkdir(): void { - if (fs.readdirSync(".").length === 0) { + if (fs.readdirSync(workingDirectory).length === 0) { if (ignoreEmptyWorkdir) { core.info( "Empty workdir detected. Ignoring because ignore-empty-workdir is enabled",