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:
@@ -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!");
|
||||
|
||||
Reference in New Issue
Block a user