Add reminder to minimise code outside try/catch

This commit is contained in:
Henry Mercer
2026-01-22 11:31:17 +00:00
parent b715292b74
commit 14bd76753f
11 changed files with 33 additions and 0 deletions
+3
View File
@@ -13,6 +13,9 @@ import { getActionsLogger } from "./logging";
import { checkGitHubVersionInRange, getErrorMessage } from "./util";
async function runWrapper() {
// To capture errors appropriately, keep as much code within the try-catch as
// possible, and only use safe functions outside.
const logger = getActionsLogger();
try {