Skip to content

Commit

Permalink
ci: 修正 @actions/artifact breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnAngela committed Dec 13, 2023
1 parent 4bb9f80 commit 9e40a58
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/generatePolyfill/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import jsonModule from "../modules/jsonModule.js";
import yamlModule from "../modules/yamlModule.js";
import { exportVariable, startGroup, endGroup } from "@actions/core";
import { createIssue, isInGithubActions } from "../modules/octokit.js";
import { create as createArtifactClient } from "@actions/artifact";
import artifactClient from "@actions/artifact";

exportVariable("linguist-generated-generatePolyfill", JSON.stringify(["src/gadgets/libPolyfill/MediaWiki:Gadget-libPolyfill.js"]));

Expand Down Expand Up @@ -63,7 +63,6 @@ await fs.promises.writeFile(codeFilePath, data, {
});
console.info("\tDone, upload it as a artifact...");
if (isInGithubActions) {
const artifactClient = createArtifactClient();
await artifactClient.uploadArtifact("polyfillGeneratedCode.js", [codeFilePath], tempPath);
}
console.info("\tDone.");
Expand Down

0 comments on commit 9e40a58

Please sign in to comment.