Skip to content

Commit cdaa091

Browse files
authored
Update generate-md.yml
1 parent 3281fce commit cdaa091

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/generate-md.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Generate MD from YAML
1+
name: Validate and Generate Markdown
22

33
on:
44
push:
@@ -7,7 +7,7 @@ on:
77
branches: [main]
88

99
jobs:
10-
generate:
10+
validate-and-generate:
1111
runs-on: ubuntu-latest
1212

1313
steps:
@@ -22,10 +22,15 @@ jobs:
2222
- name: Install PyYAML
2323
run: pip install pyyaml
2424

25-
- name: Generate markdown files
25+
- name: Validate YAML file
26+
run: python scripts/validate-yml.py
27+
28+
- name: Generate Markdown files
29+
if: success() # Only run if validation passes
2630
run: python scripts/generate.py
2731

2832
- name: Commit and push changes
33+
if: github.event_name == 'push'
2934
uses: EndBug/add-and-commit@v9
3035
with:
3136
add: 'PLUGINS.md THEMES.md README.md'

0 commit comments

Comments
 (0)