From 63e6aa725d1cf38ee3d07eab8217a15a82eb1b3d Mon Sep 17 00:00:00 2001 From: Manjul Mittal Date: Mon, 24 Jun 2024 15:55:54 +0530 Subject: [PATCH] ci: update the vote command to match instead of contains (#1274) Co-authored-by: Lukasz Gornicki --- .github/workflows/vote-verifcation.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/vote-verifcation.yml b/.github/workflows/vote-verifcation.yml index 780532d05..dfd592b5c 100644 --- a/.github/workflows/vote-verifcation.yml +++ b/.github/workflows/vote-verifcation.yml @@ -17,7 +17,7 @@ jobs: authorName: "${{github.event.comment.user.login}}" - name: Checking the person authenticity. - if: contains(github.event.comment.body, '/vote') || contains(github.event.comment.body, '/cancel-vote') + if: (github.event.comment.body == '/vote') || (github.event.comment.body == '/cancel-vote') uses: actions/github-script@v6 with: github-token: ${{ secrets.GH_TOKEN_BOT_EVE }} @@ -61,4 +61,4 @@ jobs: fi fi env: - GH_TOKEN: ${{ secrets.GH_TOKEN_BOT_EVE }} \ No newline at end of file + GH_TOKEN: ${{ secrets.GH_TOKEN_BOT_EVE }}