Adjust label workflow to only run if PR is approved (#8183)

Co-authored-by: Hedara <hedara90@gmail.com>
This commit is contained in:
hedara90 2025-11-09 22:21:55 +01:00 committed by GitHub
parent 8eea132406
commit 459b3cbb2f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,10 +3,12 @@ name: Labels
on:
pull_request:
types: [opened, synchronize, labeled, unlabeled]
pull_request_review:
types: [submitted]
jobs:
label:
if: github.actor != 'allcontributors[bot]'
if: ${{ github.actor != 'allcontributors[bot]' && github.event.review.state == 'approved' }}
runs-on: ubuntu-latest
steps:
- name: check labels