Skip to content

Commit b3e2b2b

Browse files
committed
fix artifacts v2
1 parent 6c38e58 commit b3e2b2b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

monitor/dist/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123849,7 +123849,7 @@ var __webpack_exports__ = {};
123849123849
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
123850123850
(() => {
123851123851
const core = __nccwpck_require__(78767);
123852-
const artifacts = __nccwpck_require__(4880);
123852+
const {DefaultArtifactClient} = __nccwpck_require__(4880)
123853123853
const crypto = __nccwpck_require__(6113);
123854123854
const fs = __nccwpck_require__(57147);
123855123855

@@ -123955,7 +123955,7 @@ async function run() {
123955123955
if (config.create_artifact) {
123956123956
const tempDirectory = process.env['RUNNER_TEMP'];
123957123957
fs.writeFileSync(`${tempDirectory}/permissions`, JSON.stringify(Object.fromEntries(permissions)));
123958-
await artifacts.create().uploadArtifact(
123958+
await new DefaultArtifactClient().uploadArtifact(
123959123959
`${process.env['GITHUB_JOB']}-permissions-${crypto.randomBytes(16).toString("hex")}`,
123960123960
[`${tempDirectory}/permissions`],
123961123961
tempDirectory,

monitor/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const core = require('@actions/core');
2-
const artifacts = require('@actions/artifact');
2+
const {DefaultArtifactClient} = require('@actions/artifact')
33
const crypto = require("crypto");
44
const fs = require('fs');
55

@@ -105,7 +105,7 @@ async function run() {
105105
if (config.create_artifact) {
106106
const tempDirectory = process.env['RUNNER_TEMP'];
107107
fs.writeFileSync(`${tempDirectory}/permissions`, JSON.stringify(Object.fromEntries(permissions)));
108-
await artifacts.create().uploadArtifact(
108+
await new DefaultArtifactClient().uploadArtifact(
109109
`${process.env['GITHUB_JOB']}-permissions-${crypto.randomBytes(16).toString("hex")}`,
110110
[`${tempDirectory}/permissions`],
111111
tempDirectory,

0 commit comments

Comments
 (0)