From fa316297129d08f0263193f9930e2ed356637f05 Mon Sep 17 00:00:00 2001 From: andig Date: Wed, 15 Jul 2026 13:16:27 +0200 Subject: [PATCH] CI: fix broken command workflows: trim() isn't a valid Actions expression (#31814) --- .github/workflows/command-analyze.yml | 2 +- .github/workflows/command-fix.yml | 2 +- .github/workflows/command-nightly.yml | 2 +- .github/workflows/command-pr-build.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/command-analyze.yml b/.github/workflows/command-analyze.yml index ad0a13d73..51a09aad0 100644 --- a/.github/workflows/command-analyze.yml +++ b/.github/workflows/command-analyze.yml @@ -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 diff --git a/.github/workflows/command-fix.yml b/.github/workflows/command-fix.yml index affbaafa8..23035ba19 100644 --- a/.github/workflows/command-fix.yml +++ b/.github/workflows/command-fix.yml @@ -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 diff --git a/.github/workflows/command-nightly.yml b/.github/workflows/command-nightly.yml index 0817c3844..625f5dbc0 100644 --- a/.github/workflows/command-nightly.yml +++ b/.github/workflows/command-nightly.yml @@ -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: diff --git a/.github/workflows/command-pr-build.yml b/.github/workflows/command-pr-build.yml index 53e39c680..b76e8fbed 100644 --- a/.github/workflows/command-pr-build.yml +++ b/.github/workflows/command-pr-build.yml @@ -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: