File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 1- ---
21name : Sync-Wiki
32
43on :
54 push :
65 branches :
76 - main
87 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"
1312 workflow_dispatch :
1413
1514jobs :
@@ -20,12 +19,14 @@ jobs:
2019 uses : actions/checkout@v3
2120 with :
2221 path : repo
22+
2323 - name : Checkout Wiki
2424 uses : actions/checkout@v3
2525 with :
2626 repository : ${{ github.repository }}.wiki
2727 path : wiki
2828 continue-on-error : true
29+
2930 - name : Create Wiki Directory if Not Exists
3031 run : |
3132 if [ ! -d "wiki" ]; then
@@ -36,17 +37,21 @@ jobs:
3637 git config user.email "${{ github.actor }}@users.noreply.github.com"
3738 git remote add origin "https://github.com/${{ github.repository }}.wiki.git"
3839 fi
40+
3941 - name : Set up Python
4042 uses : actions/setup-python@v4
4143 with :
4244 python-version : ' 3.10'
45+
4346 - name : Install dependencies
4447 run : pip install pyyaml
48+
4549 - name : Sync markdown files to Wiki
4650 run : |
4751 python $GITHUB_WORKSPACE/repo/.github/scripts/sync-wiki.py
4852 env :
4953 GITHUB_REPOSITORY : ${{ github.repository }}
54+
5055 - name : Push changes to wiki
5156 run : |
5257 cd wiki
You can’t perform that action at this time.
0 commit comments