Skip to content

Commit 0cbf1b0

Browse files
committed
Run label check workflow only on label events and open pr event
1 parent 011ff85 commit 0cbf1b0

File tree

2 files changed

+16
-9
lines changed

2 files changed

+16
-9
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Check Required Labels
2+
3+
on:
4+
pull_request:
5+
types: [opened, labeled, unlabeled]
6+
7+
jobs:
8+
check-required-label:
9+
runs-on: ubuntu-latest
10+
if: github.ref != 'refs/heads/master'
11+
steps:
12+
- uses: mheap/github-action-required-labels@v5
13+
with:
14+
mode: exactly
15+
count: 1
16+
labels: "ignore-for-release, feature, enhancement, bug, maintenance, docs, i18n, performance"

.github/workflows/ci.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -175,15 +175,6 @@ jobs:
175175
- name: errors
176176
run: golangci-lint run
177177
if: ${{ failure() }}
178-
check-required-label:
179-
runs-on: ubuntu-latest
180-
if: github.ref != 'refs/heads/master'
181-
steps:
182-
- uses: mheap/github-action-required-labels@v5
183-
with:
184-
mode: exactly
185-
count: 1
186-
labels: "ignore-for-release, feature, enhancement, bug, maintenance, docs, i18n, performance"
187178
upload-coverage:
188179
# List all jobs that produce coverage files
189180
needs: [unit-tests, integration-tests]

0 commit comments

Comments
 (0)