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
@@ -86,6 +86,9 @@ async function sendCompletedStatusReport(
/** The main behaviour of this action. */
async function run(): Promise<void> {
// To capture errors appropriately, keep as much code within the try-catch as
// possible, and only use safe functions outside.
const startedAt = new Date();
const logger = getActionsLogger();