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
|
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: |
|
||||||
|
|||||||
Reference in New Issue
Block a user