CI: fix broken command workflows: trim() isn't a valid Actions expression (#31814)
This commit is contained in:
parent
83e551baca
commit
fa31629712
4 changed files with 4 additions and 4 deletions
2
.github/workflows/command-analyze.yml
vendored
2
.github/workflows/command-analyze.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
2
.github/workflows/command-fix.yml
vendored
2
.github/workflows/command-fix.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
2
.github/workflows/command-nightly.yml
vendored
2
.github/workflows/command-nightly.yml
vendored
|
|
@ -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:
|
||||
|
|
|
|||
2
.github/workflows/command-pr-build.yml
vendored
2
.github/workflows/command-pr-build.yml
vendored
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue