mirror of
https://github.com/changesets/action
synced 2026-10-26 16:39:56 +08:00
Fix root action double error logs (#724)
This commit is contained in:
+8
-5
@@ -10,7 +10,13 @@ import {
|
||||
validateChangesetsCliVersion,
|
||||
} from "./utils.ts";
|
||||
|
||||
(async () => {
|
||||
try {
|
||||
await main();
|
||||
} catch (err) {
|
||||
core.setFailed((err as Error).message);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
const cwd = getOptionalInput("cwd") || process.cwd();
|
||||
await validateChangesetsCliVersion(cwd);
|
||||
|
||||
@@ -131,7 +137,4 @@ import {
|
||||
return;
|
||||
}
|
||||
}
|
||||
})().catch((err) => {
|
||||
core.error(err);
|
||||
core.setFailed(err.message);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user