mirror of
https://github.com/LouisShark/chatgpt_system_prompt.git
synced 2025-07-18 20:36:39 -04:00
23 lines
550 B
YAML
23 lines
550 B
YAML
name: Generate TOC on PR Merge
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
types: [closed]
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
run-script:
|
|
runs-on: ubuntu-latest
|
|
if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || (github.event.pull_request.merged == true && github.base_ref == 'main')
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Run TOC generation script
|
|
run: |
|
|
chmod +x generate_toc_for_readme.sh
|
|
./generate_toc_for_readme.sh
|