Skip to content

Документация - переместил страницы #16

Документация - переместил страницы

Документация - переместил страницы #16

name: Generate README
on:
push:
branches:
- main
paths:
- 'docs/index.md'
pull_request:
branches:
- main
paths:
- 'docs/index.md'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Convert docs/index.md to README.md
run: |
python docs/scripts/gen_readme_md.py
- name: Commit and push changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add README.md
git commit -m "Update README.md from docs/index.md" || echo "No changes to commit"
git push
env:
PAT_TOKEN: ${{ secrets.PAT_TOKEN }}