Skip to content

Commit

Permalink
chore: Fix pr-commands.yml to enable /ok-to-test alongside other comm…
Browse files Browse the repository at this point in the history
…ands (#11427)

Signed-off-by: Helber Belmiro <[email protected]>
  • Loading branch information
hbelmiro authored Dec 3, 2024
1 parent 7f2278f commit 60e4163
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pr-commands.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 60e4163

Please sign in to comment.