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__ = {};
123849
123849
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
123850
123850
(() => {
123851
123851
const core = __nccwpck_require__(78767);
123852
- const artifacts = __nccwpck_require__(4880);
123852
+ const {DefaultArtifactClient} = __nccwpck_require__(4880)
123853
123853
const crypto = __nccwpck_require__(6113);
123854
123854
const fs = __nccwpck_require__(57147);
123855
123855
@@ -123955,7 +123955,7 @@ async function run() {
123955
123955
if (config.create_artifact) {
123956
123956
const tempDirectory = process.env['RUNNER_TEMP'];
123957
123957
fs.writeFileSync(`${tempDirectory}/permissions`, JSON.stringify(Object.fromEntries(permissions)));
123958
- await artifacts.create ().uploadArtifact(
123958
+ await new DefaultArtifactClient ().uploadArtifact(
123959
123959
`${process.env['GITHUB_JOB']}-permissions-${crypto.randomBytes(16).toString("hex")}`,
123960
123960
[`${tempDirectory}/permissions`],
123961
123961
tempDirectory,
Original file line number Diff line number Diff line change 1
1
const core = require ( '@actions/core' ) ;
2
- const artifacts = require ( '@actions/artifact' ) ;
2
+ const { DefaultArtifactClient } = require ( '@actions/artifact' )
3
3
const crypto = require ( "crypto" ) ;
4
4
const fs = require ( 'fs' ) ;
5
5
@@ -105,7 +105,7 @@ async function run() {
105
105
if ( config . create_artifact ) {
106
106
const tempDirectory = process . env [ 'RUNNER_TEMP' ] ;
107
107
fs . writeFileSync ( `${ tempDirectory } /permissions` , JSON . stringify ( Object . fromEntries ( permissions ) ) ) ;
108
- await artifacts . create ( ) . uploadArtifact (
108
+ await new DefaultArtifactClient ( ) . uploadArtifact (
109
109
`${ process . env [ 'GITHUB_JOB' ] } -permissions-${ crypto . randomBytes ( 16 ) . toString ( "hex" ) } ` ,
110
110
[ `${ tempDirectory } /permissions` ] ,
111
111
tempDirectory ,
You can’t perform that action at this time.
0 commit comments