Skip to content

Require QA Approval #493

Require QA Approval

Require QA Approval #493

Workflow file for this run

name: Require QA Approval
on:
pull_request_review:
types: [submitted]
jobs:
is-approved-by-qa:
if: startsWith(github.event.pull_request.head.ref, 'promote-job-stable') || startsWith(github.event.pull_request.head.ref, 'promote-job-beta-experimental-traffic')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
- uses: actions/setup-node@v3
with:
node-version: lts/*
- name: Install dependencies
run: npm ci
- name: Fail if QA did not approve
run: npx ts-node ./scripts/check-qa-approval.ts --pull_number=${{ github.event.pull_request.number }}
env:
GITHUB_TOKEN: ${{ secrets.READ_ORG }}