Update original import statements to use artifact-legacy

This commit is contained in:
Angela P Wen
2024-09-25 12:08:39 -07:00
parent 76b799de1d
commit 6d887c18f0
6 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
import * as fs from "fs";
import * as path from "path";
import * as artifact from "@actions/artifact";
import * as artifactLegacy from "@actions/artifact-legacy";
import * as core from "@actions/core";
import AdmZip from "adm-zip";
import del from "del";
@@ -246,7 +246,7 @@ export async function uploadDebugArtifacts(
}
}
await artifact.create().uploadArtifact(
await artifactLegacy.create().uploadArtifact(
sanitizeArtifactName(`${artifactName}${suffix}`),
toUpload.map((file) => path.normalize(file)),
path.normalize(rootDir),
+2 -2
View File
@@ -3,7 +3,7 @@
* It will run after the all steps in this job, in reverse order in relation to
* other `post:` hooks.
*/
import * as artifact from "@actions/artifact";
import * as artifactLegacy from "@actions/artifact-legacy";
import * as core from "@actions/core";
import * as actionsUtil from "./actions-util";
@@ -32,7 +32,7 @@ async function runWrapper() {
"Debug mode is on. Uploading proxy log as Actions debugging artifact...",
);
try {
await artifact
await artifactLegacy
.create()
.uploadArtifact(
"proxy-log-file",