mirror of
https://github.com/astral-sh/setup-uv.git
synced 2026-04-11 15:10:05 +00:00
Fix detectEmptyWorkdir to use working-directory input
Co-authored-by: eifinger <1481961+eifinger@users.noreply.github.com>
This commit is contained in:
parent
9f2a67fea1
commit
f94e1fdb8a
2 changed files with 4 additions and 2 deletions
|
|
@ -73,7 +73,8 @@ async function run(): Promise<void> {
|
|||
}
|
||||
|
||||
function detectEmptyWorkdir(): void {
|
||||
if (fs.readdirSync(".").length === 0) {
|
||||
const dirToCheck = workingDirectory || ".";
|
||||
if (fs.readdirSync(dirToCheck).length === 0) {
|
||||
if (ignoreEmptyWorkdir) {
|
||||
core.info(
|
||||
"Empty workdir detected. Ignoring because ignore-empty-workdir is enabled",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue