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:
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@changesets/action": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Fix root action double error logs
|
||||||
+8
-5
@@ -10,7 +10,13 @@ import {
|
|||||||
validateChangesetsCliVersion,
|
validateChangesetsCliVersion,
|
||||||
} from "./utils.ts";
|
} from "./utils.ts";
|
||||||
|
|
||||||
(async () => {
|
try {
|
||||||
|
await main();
|
||||||
|
} catch (err) {
|
||||||
|
core.setFailed((err as Error).message);
|
||||||
|
}
|
||||||
|
|
||||||
|
async function main() {
|
||||||
const cwd = getOptionalInput("cwd") || process.cwd();
|
const cwd = getOptionalInput("cwd") || process.cwd();
|
||||||
await validateChangesetsCliVersion(cwd);
|
await validateChangesetsCliVersion(cwd);
|
||||||
|
|
||||||
@@ -131,7 +137,4 @@ import {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})().catch((err) => {
|
}
|
||||||
core.error(err);
|
|
||||||
core.setFailed(err.message);
|
|
||||||
});
|
|
||||||
|
|||||||
Reference in New Issue
Block a user