Skip to content

Commit 86367c7

Browse files
yaml update3
1 parent a7e51a9 commit 86367c7

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/sync-wiki.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
---
21
name: Sync-Wiki
32

43
on:
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

1514
jobs:
@@ -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

0 commit comments

Comments
 (0)