1
0
mirror of https://github.com/Minionguyjpro/Inno-Setup-Action synced 2026-02-18 17:41:18 +01:00

[AUTO]Update CJS script

Files changed:
M	dist/index.js
M	src/index.js
This commit is contained in:
github-actions[bot]
2024-10-12 17:28:14 +00:00
parent 9365f5270a
commit 4dc352970d
2 changed files with 44 additions and 46 deletions

View File

@@ -19,7 +19,7 @@ async function run() {
} catch {
workspaceExists = false;
}
const workspaceNotEmpty = (await fs.readdir(workspacePath)).length > 0;
if (workspaceExists && workspaceNotEmpty) {
@@ -32,10 +32,12 @@ async function run() {
core.setFailed(`Execution failed with error: ${stderr}`);
process.exit(execError.code || 1);
}
}
},
);
} else {
throw new Error("The repository was not cloned. Please specify the actions/checkout action before this step.");
throw new Error(
"The repository was not cloned. Please specify the actions/checkout action before this step.",
);
}
} else {
throw new Error("This action is only supported on Windows!");