File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,4 +15,4 @@ _No bug fixes introduced in this update_
1515
1616---
1717
18- ** Full Changelog ** : https://github.com/DAndrewBox/GM-Testing-Library/compare/vX.X.X-PREV...vX.X.X
18+ [ Insert full changelog here ]
Original file line number Diff line number Diff line change 1+ name : Sync Docs to Wiki
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ paths :
8+ - " Docs/**"
9+
10+ jobs :
11+ sync-wiki :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - name : Checkout repo
15+ uses : actions/checkout@v4
16+
17+ - name : Checkout wiki
18+ uses : actions/checkout@v4
19+ with :
20+ repository : ${{ github.repository }}.wiki
21+ path : wiki
22+ token : ${{ secrets.GITHUB_TOKEN }}
23+
24+ - name : Copy Docs to wiki
25+ run : |
26+ cp -r Docs/. wiki/
27+
28+ - name : Commit and push wiki
29+ working-directory : wiki
30+ run : |
31+ git config user.name "github-actions[bot]"
32+ git config user.email "github-actions[bot]@users.noreply.github.com"
33+ git add -A
34+ if git diff --cached --quiet; then
35+ echo "No changes to sync."
36+ else
37+ git commit -m "sync: update wiki from Docs/ [skip ci]"
38+ git push
39+ fi
You can’t perform that action at this time.
0 commit comments