Skip to content

Commit

Permalink
fixed small logic typo
Browse files Browse the repository at this point in the history
Also added comment to explain the logic
  • Loading branch information
Bullrich committed Nov 13, 2023
1 parent a984fcd commit bdb8ca8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/review-trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ on:

jobs:
trigger-review-bot:
if: github.event.pull_request.draft != true || (github.event.review && github.event.review.state == 'APPROVED')
# (It is not a draft) && (it is not a review || it is an approving review)
if: ${{ github.event.pull_request.draft != true && (github.event_name != 'pull_request_review' || (github.event.review && github.event.review.state == 'APPROVED')) }}
runs-on: ubuntu-latest
name: trigger review bot
steps:
Expand Down

0 comments on commit bdb8ca8

Please sign in to comment.