File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -38,16 +38,18 @@ jobs:
38
38
const repr = value => JSON.stringify(value);
39
39
throw Error(`Expected 1 artifact, got ${total_count} ${repr(summary ?? [])}`);
40
40
}
41
+ const artifact_id = artifacts[0].id;
42
+ console.log(`downloading artifact ${artifact_id}`);
41
43
const downloadResponse = await github.rest.actions.downloadArtifact({
42
44
owner,
43
45
repo,
44
- artifact_id: artifacts[0].id ,
46
+ artifact_id,
45
47
archive_format: 'zip',
46
48
});
47
49
const fs = require('fs');
48
50
fs.writeFileSync('${{ github.workspace }}/result.zip', Buffer.from(downloadResponse.data));
49
51
- name : Provide result directory
50
- run : rmdir -rf result && mkdir -p result
52
+ run : rm -rf result && mkdir -p result
51
53
- run : unzip -o result.zip -d result
52
54
- run : ls result
53
55
- name : Extract PR number
You can’t perform that action at this time.
0 commit comments