Skip to content

[CI] Add approval

[CI] Add approval #12

Workflow file for this run

name: Approval
on:
pull_request:
types: [opened, synchronize]
pull_request_review:
types: [submitted]
env:
BRANCH: ${{ github.base_ref }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_ID: ${{ github.event.pull_request.number }}
COMMIT_ID: ${{ github.event.pull_request.head.sha }}
jobs:
check-approval:
name: Check approval
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Display required approvers and check
run: |
git switch -c test
git remote add upstream https://github.com/PaddlePaddle/Paddle.git
git fetch upstream $BRANCH
ls ci/
bash -x ci/check_approval.sh