CI: fix broken command workflows: trim() isn't a valid Actions expression (#31814)

This commit is contained in:
andig 2026-07-15 13:16:27 +02:00 • committed by GitHub
parent 83e551baca
commit fa31629712
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View file

@ -11,7 +11,7 @@ on:
jobs:
analyze:
name: Analyze on demand
if: startsWith(trim(github.event.comment.body), '/analyze')
if: startsWith(github.event.comment.body, '/analyze')
permissions:
contents: read # explore the codebase for the answer; no fix/PR in analyze mode
issues: write # comment + minimize the calling comment

View file

@ -12,7 +12,7 @@ jobs:
fix:
name: Fix on demand
if: |
startsWith(trim(github.event.comment.body), '/fix') &&
startsWith(github.event.comment.body, '/fix') &&
contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.comment.author_association)
permissions:
contents: write # create branch + push PR fix

View file

@ -16,7 +16,7 @@ jobs:
name: Nightly Build
# on any issue/PR comment starting with /nightly, only from maintainers
if: |
startsWith(trim(github.event.comment.body), '/nightly') &&
startsWith(github.event.comment.body, '/nightly') &&
contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.comment.author_association)
runs-on: depot-ubuntu-24.04-arm
permissions:

View file

@ -21,7 +21,7 @@ jobs:
# only on PR comments starting with /build, and only from maintainers
if: |
github.event.issue.pull_request &&
startsWith(trim(github.event.comment.body), '/build') &&
startsWith(github.event.comment.body, '/build') &&
contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.comment.author_association)
runs-on: depot-ubuntu-24.04-arm
permissions: