Rename run to uploadArtifacts

This commit is contained in:
Koen Vlaswinkel
2024-03-26 11:05:21 +01:00
parent 58194bf81a
commit f835435c19
9 changed files with 15 additions and 11 deletions

View File

@@ -16,7 +16,9 @@ async function runWrapper() {
// Also run the upload-sarif post action since we're potentially running
// the same steps in the analyze action.
await uploadSarifActionPostHelper.run(debugArtifacts.uploadDebugArtifacts);
await uploadSarifActionPostHelper.uploadArtifacts(
debugArtifacts.uploadDebugArtifacts,
);
} catch (error) {
core.setFailed(
`analyze post-action step failed: ${wrapError(error).message}`,

View File

@@ -5,7 +5,7 @@ import * as core from "@actions/core";
import * as actionsUtil from "./actions-util";
export async function run(
export async function uploadArtifacts(
uploadDebugArtifacts: (
toUpload: string[],
rootDir: string,

View File

@@ -11,7 +11,9 @@ import { wrapError } from "./util";
async function runWrapper() {
try {
await uploadSarifActionPostHelper.run(debugArtifacts.uploadDebugArtifacts);
await uploadSarifActionPostHelper.uploadArtifacts(
debugArtifacts.uploadDebugArtifacts,
);
} catch (error) {
core.setFailed(
`upload-sarif post-action step failed: ${wrapError(error).message}`,