mirror of
https://github.com/astral-sh/setup-uv.git
synced 2025-10-18 16:46:58 +00:00
Fix detectEmptyWorkdir to use working-directory input
Co-authored-by: eifinger <1481961+eifinger@users.noreply.github.com>
This commit is contained in:
3
dist/setup/index.js
generated
vendored
3
dist/setup/index.js
generated
vendored
@@ -129600,7 +129600,8 @@ async function run() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
function detectEmptyWorkdir() {
|
function detectEmptyWorkdir() {
|
||||||
if (node_fs_1.default.readdirSync(".").length === 0) {
|
const dirToCheck = inputs_1.workingDirectory || ".";
|
||||||
|
if (node_fs_1.default.readdirSync(dirToCheck).length === 0) {
|
||||||
if (inputs_1.ignoreEmptyWorkdir) {
|
if (inputs_1.ignoreEmptyWorkdir) {
|
||||||
core.info("Empty workdir detected. Ignoring because ignore-empty-workdir is enabled");
|
core.info("Empty workdir detected. Ignoring because ignore-empty-workdir is enabled");
|
||||||
}
|
}
|
||||||
|
@@ -73,7 +73,8 @@ async function run(): Promise<void> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function detectEmptyWorkdir(): void {
|
function detectEmptyWorkdir(): void {
|
||||||
if (fs.readdirSync(".").length === 0) {
|
const dirToCheck = workingDirectory || ".";
|
||||||
|
if (fs.readdirSync(dirToCheck).length === 0) {
|
||||||
if (ignoreEmptyWorkdir) {
|
if (ignoreEmptyWorkdir) {
|
||||||
core.info(
|
core.info(
|
||||||
"Empty workdir detected. Ignoring because ignore-empty-workdir is enabled",
|
"Empty workdir detected. Ignoring because ignore-empty-workdir is enabled",
|
||||||
|
Reference in New Issue
Block a user