Skip to content

Commit b8b1fd4

Browse files
committed
Use system unzip on artifacts
1 parent c0fc25a commit b8b1fd4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/artifacts.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,10 @@ jobs:
3636
archive_format: 'zip'
3737
});
3838
39-
const zlib = require('zlib');
40-
const zip = zlib.unzipSync(Buffer.from(download.data));
41-
const ghInfo = JSON.parse(zip.toString());
39+
const fs = require('fs');
40+
fs.writeFileSync('artifact.zip', Buffer.from(download.data));
41+
require('child_process').execSync('unzip artifact.zip');
42+
const ghInfo = JSON.parse(fs.readFileSync('gh.json', 'utf8'));
4243
const pullNumber = ghInfo.number;
4344
4445
const artifactUrl = `${context.payload.workflow_run.html_url}/artifacts/${artifact.id}`;

0 commit comments

Comments
 (0)