Skip to content

Commit 24873a7

Browse files
authored
Fix OCR reviewing Renovate PRs
1 parent 54badf9 commit 24873a7

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/ocr-review.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ concurrency:
5656
on: # zizmor: ignore[dangerous-triggers] -- never runs untrusted code, only reads it.
5757
pull_request_target:
5858
types: [opened, synchronize, reopened]
59-
branches-ignore:
60-
- renovate/**
6159
issue_comment:
6260
types: [created]
6361

@@ -74,8 +72,15 @@ jobs:
7472
# suppresses events from bot-posted comments, but a PAT/App token would not.
7573
# issue_comment triggers are further gated on author_association so only
7674
# MEMBER/OWNER/COLLABORATOR users can spend LLM quota via re-review.
75+
# Renovate PRs are excluded here rather than with branches-ignore on the
76+
# trigger: pull_request_target branch filters match the PR's base branch
77+
# (which renovate PRs always target, main), so they can never exclude the
78+
# renovate/* head branch.
7779
if: |
78-
github.event_name == 'pull_request_target'
80+
(
81+
github.event_name == 'pull_request_target'
82+
&& !startsWith(github.head_ref, 'renovate/')
83+
)
7984
|| (
8085
github.event_name == 'issue_comment'
8186
&& github.event.issue.pull_request

0 commit comments

Comments
 (0)