Run PR-labeler-config-validator only if config changes

This commit is contained in:
Sidharth Vinod
2023-07-06 22:03:48 +05:30
parent 194ef202ac
commit 355586f297

View File

@@ -1,11 +1,7 @@
name: Validate PR Labeler Configuration
on:
push: {}
push:
pull_request:
types:
- opened
- synchronize
- ready_for_review
jobs:
pr-labeler:
@@ -13,7 +9,14 @@ jobs:
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
pr-labeller:
- '.github/pr-labeler.yml'
- name: Validate Configuration
if: steps.filter.outputs.pr-labeller == 'true'
uses: Yash-Singh1/pr-labeler-config-validator@releases/v0.0.3
with:
configuration-path: .github/pr-labeler.yml