Adjust label workflow to only run if PR is approved (#8183)
Co-authored-by: Hedara <hedara90@gmail.com>
This commit is contained in:
parent
8eea132406
commit
459b3cbb2f
4
.github/workflows/labels.yml
vendored
4
.github/workflows/labels.yml
vendored
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user