Skip to content

Commit 7efd89c

Browse files
committed
build: skip labeler for auto PRs and only assign when all files match
1 parent f7fe573 commit 7efd89c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/labeler.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818

1919
BLAS:
2020
- changed-files:
21-
- any-glob-to-any-file: '**/blas/**/*'
21+
- any-glob-to-all-files: '**/blas/**/*'
2222

2323
Math:
2424
- changed-files:
25-
- any-glob-to-any-file: '**/math/**/*'
25+
- any-glob-to-all-files: '**/math/**/*'

.github/workflows/labeler.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ jobs:
3232
# Define job name:
3333
name: 'Labeler'
3434

35+
# Only run this job if the pull request did not have label `automated-pr`:
36+
if: contains(github.event.pull_request.labels.*.name, 'automated-pr') == false
37+
3538
# Define job permissions:
3639
permissions:
3740
contents: read

0 commit comments

Comments
 (0)