Skip to content

Commit f6f1c6f

Browse files
committed
Added wiki sync and release notes template
1 parent bc23681 commit f6f1c6f

2 files changed

Lines changed: 40 additions & 1 deletion

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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]

.github/workflows/sync-wiki.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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

0 commit comments

Comments
 (0)