mirror of
https://github.com/github/codeql-action.git
synced 2026-05-08 06:40:19 +00:00
Update original import statements to use artifact-legacy
This commit is contained in:
@@ -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),
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user