From 60e4163923bd2f2d6b197043045c94e52ab7c815 Mon Sep 17 00:00:00 2001 From: Helber Belmiro Date: Tue, 3 Dec 2024 10:53:59 -0300 Subject: [PATCH] chore: Fix pr-commands.yml to enable /ok-to-test alongside other commands (#11427) Signed-off-by: Helber Belmiro --- .github/workflows/pr-commands.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-commands.yml b/.github/workflows/pr-commands.yml index 985c5fc35d9..afe53ed7510 100644 --- a/.github/workflows/pr-commands.yml +++ b/.github/workflows/pr-commands.yml @@ -9,7 +9,7 @@ jobs: process-command: runs-on: ubuntu-latest # Fail early if the command is not recognized - if: github.event.comment.body == '/ok-to-test' + if: contains(github.event.comment.body, '/ok-to-test') outputs: PR_SHA: ${{ steps.fetch-pr-sha.outputs.PR_SHA }} steps: @@ -61,7 +61,7 @@ jobs: approve: runs-on: ubuntu-latest needs: process-command - if: github.event.comment.body == '/ok-to-test' + if: contains(github.event.comment.body, '/ok-to-test') steps: - name: Checkout Main Branch uses: actions/checkout@v3