-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update workflow to copy README to Wiki
- Loading branch information
1 parent
110f188
commit 4f0d648
Showing
1 changed file
with
6 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,7 @@ jobs: | |
with: | ||
repository: ${{ github.repository }}.wiki | ||
path: wiki | ||
ref: main | ||
|
||
- name: Copy README.md to wiki | ||
run: | | ||
|
@@ -28,7 +29,9 @@ jobs: | |
- name: Push to wiki | ||
run: | | ||
cd wiki | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "Julian Prieber" | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
git add README.md | ||
git diff-index --quiet HEAD || git commit -m "Sync README.md to wiki" && git push | ||
git diff-index --quiet HEAD || git commit -m "Sync README.md to wiki" && git push | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} |