From c2eaeb2c72f0bcf912ff3e115bfe8fdec487a820 Mon Sep 17 00:00:00 2001 From: Rock Chin <1010553892@qq.com> Date: Thu, 6 Apr 2023 15:12:12 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20wiki=E5=90=8C=E6=AD=A5=E5=B7=A5?= =?UTF-8?q?=E4=BD=9C=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/sync-wiki.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/sync-wiki.yml diff --git a/.github/workflows/sync-wiki.yml b/.github/workflows/sync-wiki.yml new file mode 100644 index 00000000..ef20ea2a --- /dev/null +++ b/.github/workflows/sync-wiki.yml @@ -0,0 +1,26 @@ +name: Sync Wiki on Update +on: + push: + paths: + - 'res/wiki/**' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout QChatGPT.wiki + uses: actions/checkout@v2 + with: + repository: RockChinQ/QChatGPT.wiki + ref: main + path: wiki + - name: Copy updated files + run: cp -R res/wiki/* wiki/ + - name: Commit and push changes + run: | + cd wiki/ + git config --global user.name "GitHub Action" + git config --global user.email "action@github.com" + git add -A + git commit -m "Sync Wiki on update" + git push