File tree 1 file changed +10
-5
lines changed 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 1
- ---
2
1
name : Sync-Wiki
3
2
4
3
on :
5
4
push :
6
5
branches :
7
6
- main
8
7
paths :
9
- - ' **/*.md'
10
- - ' .github/workflows/sync-wiki.yml'
11
- - ' .github/workflows/markdownList.yml'
12
- - ' .github/scripts/sync-wiki.py'
8
+ - " **/*.md"
9
+ - " .github/workflows/sync-wiki.yml"
10
+ - " .github/workflows/markdownList.yml"
11
+ - " .github/scripts/sync-wiki.py"
13
12
workflow_dispatch :
14
13
15
14
jobs :
@@ -20,12 +19,14 @@ jobs:
20
19
uses : actions/checkout@v3
21
20
with :
22
21
path : repo
22
+
23
23
- name : Checkout Wiki
24
24
uses : actions/checkout@v3
25
25
with :
26
26
repository : ${{ github.repository }}.wiki
27
27
path : wiki
28
28
continue-on-error : true
29
+
29
30
- name : Create Wiki Directory if Not Exists
30
31
run : |
31
32
if [ ! -d "wiki" ]; then
@@ -36,17 +37,21 @@ jobs:
36
37
git config user.email "${{ github.actor }}@users.noreply.github.com"
37
38
git remote add origin "https://github.com/${{ github.repository }}.wiki.git"
38
39
fi
40
+
39
41
- name : Set up Python
40
42
uses : actions/setup-python@v4
41
43
with :
42
44
python-version : ' 3.10'
45
+
43
46
- name : Install dependencies
44
47
run : pip install pyyaml
48
+
45
49
- name : Sync markdown files to Wiki
46
50
run : |
47
51
python $GITHUB_WORKSPACE/repo/.github/scripts/sync-wiki.py
48
52
env :
49
53
GITHUB_REPOSITORY : ${{ github.repository }}
54
+
50
55
- name : Push changes to wiki
51
56
run : |
52
57
cd wiki
You can’t perform that action at this time.
0 commit comments