From b1b0bd8cf2b004806a2a0a0a08e394bd3a827200 Mon Sep 17 00:00:00 2001 From: Andrew Jackson Date: Mon, 11 Dec 2023 11:17:06 +0000 Subject: [PATCH] Conditional json validate --- .github/workflows/json_validate.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/json_validate.yml b/.github/workflows/json_validate.yml index 136014d07..1b8fa1f33 100644 --- a/.github/workflows/json_validate.yml +++ b/.github/workflows/json_validate.yml @@ -1,6 +1,14 @@ name: Validate JSONs -on: [push, pull_request] +on: + push: + paths: + - 'custom_components/battery_notes/data/**' + - '.github/workflows/**' + pull_request: + paths: + - 'custom_components/battery_notes/data/**' + - '.github/workflows/**' jobs: verify-json-validation: