Skip to content

Commit 6d887c1

Browse files
committed
Update original import statements to use artifact-legacy
1 parent 76b799d commit 6d887c1

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

lib/debug-artifacts.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/debug-artifacts.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/start-proxy-action-post.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/start-proxy-action-post.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/debug-artifacts.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as fs from "fs";
22
import * as path from "path";
33

4-
import * as artifact from "@actions/artifact";
4+
import * as artifactLegacy from "@actions/artifact-legacy";
55
import * as core from "@actions/core";
66
import AdmZip from "adm-zip";
77
import del from "del";
@@ -246,7 +246,7 @@ export async function uploadDebugArtifacts(
246246
}
247247
}
248248

249-
await artifact.create().uploadArtifact(
249+
await artifactLegacy.create().uploadArtifact(
250250
sanitizeArtifactName(`${artifactName}${suffix}`),
251251
toUpload.map((file) => path.normalize(file)),
252252
path.normalize(rootDir),

src/start-proxy-action-post.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* It will run after the all steps in this job, in reverse order in relation to
44
* other `post:` hooks.
55
*/
6-
import * as artifact from "@actions/artifact";
6+
import * as artifactLegacy from "@actions/artifact-legacy";
77
import * as core from "@actions/core";
88

99
import * as actionsUtil from "./actions-util";
@@ -32,7 +32,7 @@ async function runWrapper() {
3232
"Debug mode is on. Uploading proxy log as Actions debugging artifact...",
3333
);
3434
try {
35-
await artifact
35+
await artifactLegacy
3636
.create()
3737
.uploadArtifact(
3838
"proxy-log-file",

0 commit comments

Comments
 (0)