Skip to content

Commit

Permalink
proper condition
Browse files Browse the repository at this point in the history
Signed-off-by: Florent Poinsard <[email protected]>
  • Loading branch information
frouioui committed Oct 24, 2023
1 parent 68b9427 commit 03b4d1a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/auto_approve_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
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

0 comments on commit 03b4d1a

Please sign in to comment.