-
Notifications
You must be signed in to change notification settings - Fork 4
40 lines (38 loc) · 879 Bytes
/
update-wiki.yaml
File metadata and controls
40 lines (38 loc) · 879 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Update Wiki
on:
pull_request:
branches:
- main
paths:
- 'docs/wiki/**'
push:
branches:
- main
paths:
- 'docs/wiki/**'
jobs:
update-wiki:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Git
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- name: Clone Wiki Repository
uses: actions/checkout@v2
with:
repository: RockChinQ/CallingGPT.wiki
path: wiki
- name: Copy docs/wiki content to wiki
run: |
cp -r docs/wiki/* wiki/
- name: Commit and Push Changes
run: |
cd wiki
if git diff --name-only; then
git add .
git commit -m "Update wiki"
git push
fi