File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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(() => {
123851123851const core = __nccwpck_require__(78767);
123852- const artifacts = __nccwpck_require__(4880);
123852+ const {DefaultArtifactClient} = __nccwpck_require__(4880)
123853123853const crypto = __nccwpck_require__(6113);
123854123854const 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,
Original file line number Diff line number Diff line change 11const core = require ( '@actions/core' ) ;
2- const artifacts = require ( '@actions/artifact' ) ;
2+ const { DefaultArtifactClient } = require ( '@actions/artifact' )
33const crypto = require ( "crypto" ) ;
44const 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 ,
You can’t perform that action at this time.
0 commit comments