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:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
types: [opened, synchronize, labeled, unlabeled]
|
types: [opened, synchronize, labeled, unlabeled]
|
||||||
|
pull_request_review:
|
||||||
|
types: [submitted]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
label:
|
label:
|
||||||
if: github.actor != 'allcontributors[bot]'
|
if: ${{ github.actor != 'allcontributors[bot]' && github.event.review.state == 'approved' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: check labels
|
- name: check labels
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user