mirror of
https://github.com/LouisShark/chatgpt_system_prompt.git
synced 2025-07-05 14:20:33 -04:00
feat: update merge PR's script
This commit is contained in:
parent
c022623658
commit
d83d6c7141
1 changed files with 7 additions and 5 deletions
12
.github/workflows/build-toc.yaml
vendored
12
.github/workflows/build-toc.yaml
vendored
|
@ -1,9 +1,6 @@
|
|||
name: Generate TOC on PR Merge
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
types: [closed]
|
||||
branches:
|
||||
|
@ -17,10 +14,15 @@ jobs:
|
|||
- 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 generate_toc_for_readme.sh
|
||||
./generate_toc_for_readme.sh
|
||||
chmod +x .script/idxtool.sh
|
||||
python3 .script/idxtool.sh --toc
|
||||
|
||||
- name: Commit TOC updates
|
||||
run: |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue