From d0bbbf819a58dc85974b7231a4cea36462bef1f2 Mon Sep 17 00:00:00 2001 From: "Michael B. Gale" Date: Mon, 12 Oct 2026 17:24:21 +0100 Subject: [PATCH] Log when we didn't get a normal configuration file --- lib/entry-points.js | 3 +++ src/init-action-post.ts | 3 +++ 2 files changed, 6 insertions(+) diff --git a/lib/entry-points.js b/lib/entry-points.js index 1a4d28840..e66570e14 100644 --- a/lib/entry-points.js +++ b/lib/entry-points.js @@ -187231,6 +187231,9 @@ async function run4(action) { const tmpDir = getTemporaryDirectory(); config = await getConfig(tmpDir, logger2); if (config === void 0) { + logger2.debug( + "Will try to load the configuration file from an aborted 'init' step, since there is no regular one." + ); config = getAbortedInitConfig(action, tmpDir); } const gitHubVersion = config?.gitHubVersion ?? await getGitHubVersion(); diff --git a/src/init-action-post.ts b/src/init-action-post.ts index 689cfd465..d7e00081b 100644 --- a/src/init-action-post.ts +++ b/src/init-action-post.ts @@ -76,6 +76,9 @@ async function run(action: ActionState<["Base", "Logger", "Env"]>) { // Try to load the "failed" configuration file instead which may have been written by the `init` step // with a minimal configuration for this post-action. if (config === undefined) { + logger.debug( + "Will try to load the configuration file from an aborted 'init' step, since there is no regular one.", + ); config = getAbortedInitConfig(action, tmpDir); }