ci: post PR artifact comments per build

This commit is contained in:
Shantur Rathore
2026-03-20 18:00:18 +00:00
parent 0283493f2a
commit 68407a01a4

View File

@@ -110,23 +110,6 @@ jobs:
artifactsBlock,
].join('\n');
const comments = await github.paginate(
github.rest.issues.listComments,
{ owner, repo, issue_number: prNumber, per_page: 100 }
);
const existing = comments.find((comment) => (comment.body || '').includes(marker));
if (existing) {
await github.rest.issues.updateComment({
owner,
repo,
comment_id: existing.id,
body,
});
core.info(`Updated existing artifacts comment: ${existing.html_url}`);
return;
}
const created = await github.rest.issues.createComment({
owner,
repo,