Skip to content

Commit ea97b83

Browse files
committed
Scope sticky-comment lookup to github-actions[bot]
The upsert predicate matched any bot, so a comment from a different bot that quoted the marker string would have been overwritten with the preview table instead of the workflow's own comment. :house: Remote-Dev: homespace
1 parent 24b3a5d commit ea97b83

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/docs-preview.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ jobs:
194194
195195
async function upsert(body) {
196196
const comments = await github.paginate(github.rest.issues.listComments, { owner, repo, issue_number, per_page: 100 });
197-
const existing = comments.find(c => c.user?.type === 'Bot' && c.body?.includes(marker));
197+
const existing = comments.find(c => c.user?.login === 'github-actions[bot]' && c.body?.includes(marker));
198198
if (existing) {
199199
await github.rest.issues.updateComment({ owner, repo, comment_id: existing.id, body });
200200
} else {

0 commit comments

Comments
 (0)