fix: move comments out of workflow if: expression block
Forgejo runner's expression parser rejects '#' characters inside if: | blocks (run 52778: "unexpected character '#' while lexing expression"). Move all comments above the if: key and switch from block scalar (|) to folded scalar (>-) to avoid multiline issues. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
1748a2c3df
commit
f3c92a2821
1 file changed
-6
@@ -26,13 +26,7 @@ jobs:
|
|||||||
# despite action being 'labeled'). Let all through; trigger.ts validates.
|
# despite action being 'labeled'). Let all through; trigger.ts validates.
|
||||||
if: >-
|
if: >-
|
||||||
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
|
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
|
||||||
# Forgejo collapses both pull_request_review_comment AND pull_request_review
|
|
||||||
# into pull_request_comment. We cannot gate on @claude here because Forgejo's
|
|
||||||
# webhook payload does not populate github.event.comment.body or
|
|
||||||
# github.event.review.body for these events (tested: run 12084 was skipped).
|
|
||||||
# The @claude check is handled in trigger.ts which reads the actual payload.
|
|
||||||
(github.event_name == 'pull_request_review_comment' || github.event_name == 'pull_request_comment') ||
|
(github.event_name == 'pull_request_review_comment' || github.event_name == 'pull_request_comment') ||
|
||||||
# This condition only fires on GitHub (Forgejo never sends pull_request_review).
|
|
||||||
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) ||
|
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) ||
|
||||||
(github.event_name == 'issues')
|
(github.event_name == 'issues')
|
||||||
runs-on: grunt
|
runs-on: grunt
|
||||||
|
|||||||
Reference in new issue
Block a user