Skip to content

chore: rename Claude Code prompts from v2.1.118 to v2.1.133 #180

chore: rename Claude Code prompts from v2.1.118 to v2.1.133

chore: rename Claude Code prompts from v2.1.118 to v2.1.133 #180

Workflow file for this run

name: Generate TOC on PR Merge or Push
# This workflow automatically updates the TOC.md files in the repository
# whenever there's a PR merge or direct push to the main branch.
# It ensures that the table of contents stays up-to-date without manual intervention.
on:
# Trigger on direct pushes to main branch (also fires on PR merges)
push:
branches:
- main
permissions:
contents: write
concurrency:
group: main-push
cancel-in-progress: false
jobs:
build_toc:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
# Fetch all history for allowing proper git operations
fetch-depth: 0
- name: Set up Python 3
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f .scripts/requirements.txt ]; then pip install -r .scripts/requirements.txt; fi
- 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 prompts/*/TOC.md
git commit -m "docs: Update TOC.md files" || echo "No changes to commit"
git pull --rebase origin main
git push origin HEAD:main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}