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