Skip to content

chore(workspace): approve PR when label "skip-manual-testing" is added #2

chore(workspace): approve PR when label "skip-manual-testing" is added

chore(workspace): approve PR when label "skip-manual-testing" is added #2

name: Auto-Approve PR
on:
pull_request:
types: [ labeled ]
jobs:
auto-approve:
runs-on: ubuntu-latest
if: github.event.label.name == 'skip-manual-testing'
steps:
- name: Checkout PR code
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Auto approve PR
run: gh pr review --approve
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}