Skip to content

docs: Chat NeurIPS.md #28

docs: Chat NeurIPS.md

docs: Chat NeurIPS.md #28

Workflow file for this run

name: Generate TOC on PR Merge
on:
pull_request:
types: [closed]
branches:
- main
jobs:
run-script:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true && github.base_ref == 'main'
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python 3
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Run TOC generation script
run: |
chmod +x .scripts/idxtool.py
python3 .scripts/idxtool.py --toc
- name: Commit TOC updates
run: |
git config --global user.name 'LouisShark'
git config --global user.email 'mshark.louis@gmail.com'
git add TOC.md
git commit -m "docs: Update TOC.md" || echo "No changes to commit"
git push origin HEAD:main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}