Skip to content

feature/index site (#7) #1

feature/index site (#7)

feature/index site (#7) #1

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