Skip to content

Commit e417495

Browse files
Change workflows to just main branch
1 parent 65b83cb commit e417495

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

.github/workflows/json_librarian.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@ name: JSON Library Sorter and Doc Gen
33
on:
44
workflow_dispatch:
55
push:
6+
branches:
7+
- "main"
68
paths:
7-
- 'custom_components/battery_notes/data/library.json'
8-
- '.github/workflows/json_librarian.yml'
9-
- '.github/workflows/scripts/library_doc/**'
9+
- "custom_components/battery_notes/data/library.json"
10+
- ".github/workflows/json_librarian.yml"
11+
- ".github/workflows/scripts/library_doc/**"
1012

1113
jobs:
1214
librarian:

.github/workflows/json_validate.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,19 @@ name: Validate JSONs
33
on:
44
workflow_dispatch:
55
push:
6+
branches:
7+
- "main"
68
paths:
7-
- 'custom_components/battery_notes/schema.json'
8-
- 'custom_components/battery_notes/data/**'
9-
- '.github/workflows/json*.yml'
9+
- "custom_components/battery_notes/schema.json"
10+
- "custom_components/battery_notes/data/**"
11+
- ".github/workflows/json*.yml"
1012
pull_request:
13+
branches:
14+
- "main"
1115
paths:
12-
- 'custom_components/battery_notes/schema.json'
13-
- 'custom_components/battery_notes/data/**'
14-
- '.github/workflows/json*.yml'
16+
- "custom_components/battery_notes/schema.json"
17+
- "custom_components/battery_notes/data/**"
18+
- ".github/workflows/json*.yml"
1519

1620
jobs:
1721
verify-json-validation:
@@ -23,4 +27,3 @@ jobs:
2327
with:
2428
schema: custom_components/battery_notes/schema.json
2529
files: custom_components/battery_notes/data/library.json
26-

0 commit comments

Comments
 (0)