github: Fix PR command dispatcher logic so it doesn't always trigger

Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
This commit is contained in:
James Le Cuirot 2025-11-14 10:22:19 +00:00
parent 7ec9fa3ec2
commit 3faad0b5d8
No known key found for this signature in database
GPG Key ID: 1226415D00DD3137

View File

@ -13,7 +13,7 @@ concurrency:
jobs:
run_pre_checks:
# Only run if this is a PR comment that contains a valid command
if: ${{ github.event.issue.pull_request }} && ( contains(github.event.comment.body, '/build-image') || contains(github.event.comment.body, '/update-sdk'))
if: ${{ github.event.issue.pull_request && (contains(github.event.comment.body, '/build-image') || contains(github.event.comment.body, '/update-sdk')) }}
name: Check if commenter is in the Flatcar maintainers team
outputs:
maintainers: steps.step1.output.maintainers