I am working on a project in which GitHub action will trigger when the pull request is approved as mentioned here. But in my case, there are at least 2 approvals required to approve the pull request, so at each approval, actions start to run. Is there any way to run the GitHub actions on just one approval and ignore the others?
on:
pull_request_review:
types: [submitted]
jobs:
approved:
if: github.event.review.state == 'approved'
runs-on: ubuntu-latest
steps:
- run: echo "This PR was approved"