Skip to content

Commit 4f0d648

Browse files
committed
Update workflow to copy README to Wiki
1 parent 110f188 commit 4f0d648

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/copy-readme-to-wiki.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
with:
2121
repository: ${{ github.repository }}.wiki
2222
path: wiki
23+
ref: main
2324

2425
- name: Copy README.md to wiki
2526
run: |
@@ -28,7 +29,9 @@ jobs:
2829
- name: Push to wiki
2930
run: |
3031
cd wiki
31-
git config --local user.email "[email protected]"
32-
git config --local user.name "Julian Prieber"
32+
git config --local user.email "[email protected]"
33+
git config --local user.name "GitHub Action"
3334
git add README.md
34-
git diff-index --quiet HEAD || git commit -m "Sync README.md to wiki" && git push
35+
git diff-index --quiet HEAD || git commit -m "Sync README.md to wiki" && git push
36+
env:
37+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

0 commit comments

Comments
 (0)