Move debug artifact methods into separate file

This commit is contained in:
Angela P Wen 2022-08-02 12:27:52 +02:00
parent 5895ab0c0b
commit eeee462f05
18 changed files with 434 additions and 359 deletions

View file

@ -27,6 +27,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
const core = __importStar(require("@actions/core"));
const actionsUtil = __importStar(require("./actions-util"));
const config_utils_1 = require("./config-utils");
const debugArtifacts = __importStar(require("./debug-artifacts"));
const logging_1 = require("./logging");
async function run(uploadSarifDebugArtifact) {
const logger = (0, logging_1.getActionsLogger)();
@ -42,7 +43,7 @@ async function run(uploadSarifDebugArtifact) {
}
async function runWrapper() {
try {
await run(actionsUtil.uploadSarifDebugArtifact);
await run(debugArtifacts.uploadSarifDebugArtifact);
}
catch (error) {
core.setFailed(`analyze action cleanup failed: ${error}`);