diff --git a/ci/cleanup-pr-previews b/ci/cleanup-pr-previews index 414e8507ad3..d8bbd571cdc 100755 --- a/ci/cleanup-pr-previews +++ b/ci/cleanup-pr-previews @@ -122,7 +122,7 @@ update_preview_comment() { printf -v comment_body 'Doc Preview CI\n:---:\n%s\n' "$status_message" if ! comment_id=$(gh api --paginate repos/"${REPOSITORY}"/issues/"${pr_number}"/comments \ --header "Accept: application/vnd.github+json" \ - --jq '.[] | select(.body | contains("")) | .id' \ + --jq '.[] | select(.user.login == "github-actions[bot]" and (.body | contains(""))) | .id' \ | tail -n 1); then return 1 fi