Use Reviewing deployments, an official GitHub feature.
This action provide Pseudo Appeoved Event.
Optional The number of unique approvals. Default 1
.
Pull Request is approved or not. if approved, value is true
;
on: pull_request_review
name: Example Job
jobs:
myJob:
runs-on: ubuntu-latest
steps:
- uses: taichi/approved-event-action@v1.2.1
id: approved
with:
approvals: '2'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: echo "Approved !!"
if: steps.approved.outputs.approved == 'true'