Require QA Approval #827
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # 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 }} |