5
0
mirror of https://github.com/astral-sh/setup-uv.git synced 2025-12-19 11:04:08 +00:00

Use working-directory to detect empty workdir (#645)

Fixes: #642
This commit is contained in:
Kevin Stillhammer
2025-10-16 08:21:58 +02:00
committed by GitHub
parent 6e346e1653
commit dffc6292f2
2 changed files with 2 additions and 2 deletions

View File

@@ -73,7 +73,7 @@ async function run(): Promise<void> {
}
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",