mirror of
https://gitcode.com/gh_mirrors/se/setup-uv.git
synced 2026-07-02 18:17:52 +00:00
committed by
GitHub
parent
6e346e1653
commit
dffc6292f2
+1
-1
@@ -129618,7 +129618,7 @@ async function run() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
function detectEmptyWorkdir() {
|
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) {
|
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");
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -73,7 +73,7 @@ async function run(): Promise<void> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function detectEmptyWorkdir(): void {
|
function detectEmptyWorkdir(): void {
|
||||||
if (fs.readdirSync(".").length === 0) {
|
if (fs.readdirSync(workingDirectory).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