mirror of
https://github.com/LouisShark/chatgpt_system_prompt.git
synced 2025-07-05 22:30:37 -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
|
name: Generate TOC on PR Merge
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
pull_request:
|
pull_request:
|
||||||
types: [closed]
|
types: [closed]
|
||||||
branches:
|
branches:
|
||||||
|
@ -17,10 +14,15 @@ jobs:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Set up Python 3
|
||||||
|
uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: '3.x'
|
||||||
|
|
||||||
- name: Run TOC generation script
|
- name: Run TOC generation script
|
||||||
run: |
|
run: |
|
||||||
chmod +x generate_toc_for_readme.sh
|
chmod +x .script/idxtool.sh
|
||||||
./generate_toc_for_readme.sh
|
python3 .script/idxtool.sh --toc
|
||||||
|
|
||||||
- name: Commit TOC updates
|
- name: Commit TOC updates
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue