mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-17 23:39:26 +02:00
Run PR-labeler-config-validator only if config changes
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user