This based on taichi/approved-event-action action provide a way to identify approved PR. Allowing us to consider changes requested
Optional The number of unique approvals. Default 1
.
Optional Checks if there's changes requested. Default true
.
Pull Request is approved or not. if approved, value is true
otherwise false
;
on: pull_request_review
name: Example Job
jobs:
myJob:
runs-on: ubuntu-latest
steps:
- uses: luisrjaeger/[email protected]
id: approved
with:
approvals: 2
check_changes_requested: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: echo "Approved !!"
if: ${{ steps.approved.outputs.approved == 'true' }}