-
Notifications
You must be signed in to change notification settings - Fork 6
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
23 changed files
with
3,837 additions
and
354 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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: "Mirror wiki/ to repo.wiki" | ||
|
||
# Run on changes to the `wiki` directory on the `main` branch | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'wiki/**' | ||
|
||
jobs: | ||
mirror: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout main | ||
uses: actions/checkout@v3 | ||
with: | ||
path: TomoBEAR | ||
- name: Checkout wiki | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: "KudryashevLab/TomoBEAR.wiki" | ||
path: TomoBEAR.wiki | ||
- name: Copy wiki files | ||
run: | | ||
git config --global user.email "actions@github.com" | ||
git config --global user.name "Wiki mirror" | ||
cp $GITHUB_WORKSPACE/TomoBEAR/wiki/*.md $GITHUB_WORKSPACE/TomoBEAR.wiki | ||
cd $GITHUB_WORKSPACE/TomoBEAR.wiki | ||
git add . | ||
# only commit if there are changes | ||
git diff-index --quiet HEAD -- || git commit -m "sync from wiki/" | ||
git push |
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
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
Oops, something went wrong.