Skip to content

Commit 08bc0cf

Browse files
authored
Merge pull request #2751 from github/henrymercer/fix-init-post-without-config
Send `init-post` status report in absence of config
2 parents ad42dbd + cf7c687 commit 08bc0cf

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

lib/init-action-post.js

+3-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/init-action-post.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/init-action-post.ts

+9-10
Original file line numberDiff line numberDiff line change
@@ -67,17 +67,16 @@ async function runWrapper() {
6767
logger.warning(
6868
"Debugging artifacts are unavailable since the 'init' Action failed before it could produce any.",
6969
);
70-
return;
70+
} else {
71+
uploadFailedSarifResult = await initActionPostHelper.run(
72+
debugArtifacts.tryUploadAllAvailableDebugArtifacts,
73+
printDebugLogs,
74+
config,
75+
repositoryNwo,
76+
features,
77+
logger,
78+
);
7179
}
72-
73-
uploadFailedSarifResult = await initActionPostHelper.run(
74-
debugArtifacts.tryUploadAllAvailableDebugArtifacts,
75-
printDebugLogs,
76-
config,
77-
repositoryNwo,
78-
features,
79-
logger,
80-
);
8180
} catch (unwrappedError) {
8281
const error = wrapError(unwrappedError);
8382
core.setFailed(error.message);

0 commit comments

Comments
 (0)