fix(ci): skip bot-triggered runs in Auto Fix CI Failures

Co-authored-by: polylane[bot] <277585245+polylane[bot]@users.noreply.github.com>
This commit is contained in:
Dhravya Shah 2026-09-18 02:15:29 +00:00 • committed by polylane-bot
parent 69327ca1c6
commit 4dc504b397
No known key found for this signature in database

View file

@ -15,9 +15,14 @@ permissions:
jobs:
auto-fix:
# claude-code-action refuses non-human actors unless `allowed_bots` is set, so a
# bot-triggered run (for example a Polylane autofix branch) fails at the Claude
# step even though the job cannot do its work. Skip those runs, matching the
# human-only gating in claude.yml, instead of reporting them as CI failures.
if: |
github.event.workflow_run.conclusion == 'failure' &&
github.event.workflow_run.pull_requests[0]
github.event.workflow_run.pull_requests[0] &&
!endsWith(github.event.workflow_run.actor.login, '[bot]')
runs-on: ubuntu-latest
timeout-minutes: 30
steps: