From 96895ffe79ad4cdf05b4e1fc65e13bcf01daf289 Mon Sep 17 00:00:00 2001 From: LouisShark Date: Sun, 10 Dec 2023 22:21:15 +0800 Subject: [PATCH] docs: merge workflow --- .github/workflows/build-toc.yaml | 19 +++++++++++++++++++ TOC.md | 1 + 2 files changed, 20 insertions(+) create mode 100644 .github/workflows/build-toc.yaml diff --git a/.github/workflows/build-toc.yaml b/.github/workflows/build-toc.yaml new file mode 100644 index 00000000..3d0aa410 --- /dev/null +++ b/.github/workflows/build-toc.yaml @@ -0,0 +1,19 @@ +name: Generate TOC on PR Merge + +on: + push: + branches: + - main + +jobs: + run-script: + runs-on: ubuntu-latest + if: github.event.pull_request.merged == true + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Run TOC generation script + run: | + chmod +x generate_toc_for_readme.sh + ./generate_toc_for_readme.sh diff --git a/TOC.md b/TOC.md index a9d18bf2..d37dc515 100644 --- a/TOC.md +++ b/TOC.md @@ -132,6 +132,7 @@ - [SWOT Analysis](./prompts/gpts/SWOT%20Analysis.md) - [Sales Cold Email Coach](./prompts/gpts/Sales%20Cold%20Email%20Coach.md) - [Salvador](./prompts/gpts/Salvador.md) + - [Santa](./prompts/gpts/Santa.md) - [Sarcastic Humorist](./prompts/gpts/Sarcastic%20Humorist.md) - [ScholarAI](./prompts/gpts/ScholarAI.md) - [Screenplay GPT](./prompts/gpts/Screenplay%20GPT.md)