diff --git a/.github/workflows/auto_approve_pr.yml b/.github/workflows/auto_approve_pr.yml index 99780aa57aa..5d38e721f98 100644 --- a/.github/workflows/auto_approve_pr.yml +++ b/.github/workflows/auto_approve_pr.yml @@ -12,8 +12,9 @@ jobs: uses: actions/checkout@v3 - name: Approve Pull Request - if: github.event.pull_request.user.login == 'bot-vitess[bot]' && github.event.pull_request.draft == 'false' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - gh pr review ${{ github.event.pull_request.number }} --approve \ No newline at end of file + if [[ "${{github.event.pull_request.user.login}}" == "bot-vitess[bot]" ]] && [[ "${{github.event.pull_request.draft}}" == "false" ]]; then + gh pr review ${{ github.event.pull_request.number }} --approve + fi