Rename run to uploadArtifacts
This commit is contained in:
parent
58194bf81a
commit
f835435c19
9 changed files with 15 additions and 11 deletions
|
|
@ -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}`,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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}`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue