Skip to content

Commit 597cbfb

Browse files
authored
Meta: Cleanup publish-pr.yml
1 parent adb2a6b commit 597cbfb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/publish-pr.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,18 @@ jobs:
3838
const repr = value => JSON.stringify(value);
3939
throw Error(`Expected 1 artifact, got ${total_count} ${repr(summary ?? [])}`);
4040
}
41+
const artifact_id = artifacts[0].id;
42+
console.log(`downloading artifact ${artifact_id}`);
4143
const downloadResponse = await github.rest.actions.downloadArtifact({
4244
owner,
4345
repo,
44-
artifact_id: artifacts[0].id,
46+
artifact_id,
4547
archive_format: 'zip',
4648
});
4749
const fs = require('fs');
4850
fs.writeFileSync('${{ github.workspace }}/result.zip', Buffer.from(downloadResponse.data));
4951
- name: Provide result directory
50-
run: rmdir -rf result && mkdir -p result
52+
run: rm -rf result && mkdir -p result
5153
- run: unzip -o result.zip -d result
5254
- run: ls result
5355
- name: Extract PR number

0 commit comments

Comments
 (0)