File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 1+ ---
12name : 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)
You can’t perform that action at this time.
0 commit comments