feat: update merge PR's script
This commit is contained in:
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: |
|
||||
|
||||
Reference in New Issue
Block a user