Skip to content

Create enforce-approval-voting.yml #7

Create enforce-approval-voting.yml

Create enforce-approval-voting.yml #7

name: Enforce Voting Approval Requirements
on:
pull_request:
types: [opened, synchronize, reopened, edited]
jobs:
approval-check:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Enforce Approval Requirement
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
node .github/enforceApproval.js