We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0fc25a commit b8b1fd4Copy full SHA for b8b1fd4
.github/workflows/artifacts.yml
@@ -36,9 +36,10 @@ jobs:
36
archive_format: 'zip'
37
});
38
39
- const zlib = require('zlib');
40
- const zip = zlib.unzipSync(Buffer.from(download.data));
41
- const ghInfo = JSON.parse(zip.toString());
+ const fs = require('fs');
+ fs.writeFileSync('artifact.zip', Buffer.from(download.data));
+ require('child_process').execSync('unzip artifact.zip');
42
+ const ghInfo = JSON.parse(fs.readFileSync('gh.json', 'utf8'));
43
const pullNumber = ghInfo.number;
44
45
const artifactUrl = `${context.payload.workflow_run.html_url}/artifacts/${artifact.id}`;
0 commit comments