-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
29 additions
and
20 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
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
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 |
---|---|---|
|
@@ -41,14 +41,20 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout base code | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
with: | ||
path: code | ||
- name: Checkout wiki code | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: ${{github.repository}}.wiki | ||
path: wiki | ||
- name: Generate wiki from docs | ||
env: | ||
WIKI_TOKEN: ${{ secrets.WIKI_TOKEN }} | ||
run: | | ||
mkdir wiki | ||
cd wiki | ||
git init | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
git pull https://[email protected]/${{ github.event.repository.owner.name }}/${{ github.event.repository.name }}.wiki.git | ||
- name: Generate wiki from docs | ||
run: | | ||
touch ./wiki.md | ||
|
@@ -66,12 +72,15 @@ jobs: | |
cp ./wiki.md ./wiki/Home.md | ||
- name: Push to wiki | ||
env: | ||
WIKI_TOKEN: ${{ secrets.WIKI_TOKEN }} | ||
run: | | ||
cd wiki | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
git add . | ||
git diff-index --quiet HEAD || git commit -m "Add changes" && git push | ||
git diff-index --quiet HEAD && exit 0 | ||
git commit -m "Add changes" | ||
git push -f --set-upstream https://[email protected]/${{ github.event.repository.owner.name }}/${{ github.event.repository.name }}.wiki.git master | ||
create_snapshot_release: | ||
name: Create snapshot release | ||
|
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