Skip to content

Require QA Approval #790

Require QA Approval

Require QA Approval #790

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@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install dependencies
run: npm ci
- name: Fail if QA did not approve
run: npx tsx ./scripts/check-qa-approval.ts --pull_number=${{ github.event.pull_request.number }}
env:
GITHUB_TOKEN: ${{ secrets.READ_ORG }}