fix: skip test-action for PRs created by claude bot

When Claude creates a PR (e.g. upstream-sync), the pull_request event
fires with actor=claude. The self-trigger guard in actor.ts blocks
this because actor 'claude' matches bot_name 'claude[bot]', causing
test-action to fail with "Blocking self-trigger" error.

Add `if: github.actor != 'claude'` to the test-agent-mode job.
Claude-created PRs (upstream syncs) don't need the integration test
since they're merge commits, not action code changes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Vlad MocanuandClaude Opus 4.6 committed 2026-02-27 13:17:19 +02:00
1 parent b1524d7857
commit 432243def1
2 files changed
+4

No files matched your search

+3
View File
@@ -160,6 +160,9 @@ _test_action_workflow = {
"test-agent-mode" = {
name = "Test Agent Mode on Forgejo"
"runs-on" = "grunt"
# Skip when the PR was created by the claude bot (e.g. upstream-sync PRs).
# The self-trigger guard in actor.ts blocks actor=claude matching bot_name=claude[bot].
"if" = "github.actor != 'claude'"
steps = [
checkout_mod.checkout()
{