Skip to content

Commit 343ac1f

Browse files
yaml update
1 parent 6b04d17 commit 343ac1f

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/sync-wiki.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
---
12
name: Sync Wiki
23

3-
on:
4+
true:
45
push:
56
branches:
67
- main
@@ -19,31 +20,27 @@ jobs:
1920
uses: actions/checkout@v3
2021
with:
2122
path: repo
22-
2323
- name: Checkout Wiki
2424
uses: actions/checkout@v3
2525
with:
2626
repository: ${{ github.repository }}.wiki
2727
path: wiki
28-
2928
- name: Set up Python
3029
uses: actions/setup-python@v4
3130
with:
3231
python-version: '3.10'
33-
3432
- name: Install dependencies
3533
run: pip install pyyaml
36-
3734
- name: Sync markdown files to Wiki
3835
run: |
3936
python $GITHUB_WORKSPACE/repo/.github/scripts/sync-wiki.py
4037
env:
4138
GITHUB_REPOSITORY: ${{ github.repository }}
42-
4339
- name: Push changes to wiki
4440
run: |
4541
cd wiki
4642
git config user.name "${{ github.actor }}"
4743
git config user.email "${{ github.actor }}@users.noreply.github.com"
4844
git add .
49-
git diff --quiet && git diff --staged --quiet || (git commit -m "Auto sync wiki from main repository" && git push)
45+
git diff --quiet && git diff --staged --quiet || \
46+
(git commit -m "Auto sync wiki from main repository" && git push)

0 commit comments

Comments
 (0)