visual ui ux and usability #6
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: Generate README | |
| on: | |
| push: | |
| branches: [ main ] | |
| paths: | |
| - 'aws/**/*.md' | |
| - 'azure/**/*.md' | |
| - 'gcp/**/*.md' | |
| - '.publish/scripts/generate_readme.py' | |
| - '.publish/scripts/readme_generator.py' | |
| - '.publish/scripts/recipe_parser.py' | |
| - '.publish/scripts/taxonomy_mapper.py' | |
| - '.publish/data/config.json' | |
| - '.publish/data/taxonomy.json' | |
| - '.publish/templates/README.jinja2' | |
| - '.publish/templates/category_section.jinja2' | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| generate-readme: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install dependencies | |
| run: | | |
| pip install -r .publish/scripts/requirements.txt | |
| - name: Generate README.md | |
| run: | | |
| cd .publish/scripts | |
| python generate_readme.py --verbose | |
| - name: Commit updated README | |
| run: | | |
| git config --local user.email "action@github.com" | |
| git config --local user.name "GitHub Action" | |
| git add README.md | |
| git diff --staged --quiet || git commit -m "📚 Auto-update README.md" | |
| git push |