Update README.md #219
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Validate, Generate Markdown, and Convert JSON | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| validate-generate-convert: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.12' | |
| - name: Install dependencies | |
| run: pip install pyyaml | |
| - name: Validate YAML file | |
| run: python scripts/validate-yml.py | |
| - name: Generate Markdown files | |
| if: success() | |
| run: python scripts/generate.py | |
| - name: Convert YAML to JSON | |
| if: success() | |
| run: python scripts/yml-to-json.py | |
| - name: Commit and push changes | |
| if: github.event_name == 'push' | |
| uses: EndBug/add-and-commit@v9 | |
| with: | |
| add: 'PLUGINS.md THEMES.md README.md generated/json/plugins-and-themes.json' | |
| message: 'Update markdown and JSON output from YAML' | |
| push: true |