This repository has been archived by the owner on Apr 8, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
/
.travis.yml
25 lines (25 loc) · 1.64 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
script:
- |
git config user.name "Wiki Sync"
git config user.email "[email protected]"
git remote remove origin
git remote add origin https://[email protected]/foundry-vtt-community/wiki.git > /dev/null 2>&1
git remote add upstream https://[email protected]/foundry-vtt-community/wiki.wiki.git > /dev/null 2>&1
git fetch origin
git fetch upstream
git merge upstream/master --no-edit
chmod a+x utils/gh-md-toc
./utils/gh-md-toc Home.md > _Sidebar.md && git add _Sidebar.md
for file in $(grep -l '<!--ts-->' *.md); do
./utils/gh-md-toc --insert $file && git add $file
done
if [[ "$(git diff --cached)" != "" ]] ; then
git commit -m "Update sidebar Table of Content (Automatic)"
fi
git remote add old https://[email protected]/foundry-vtt-community/wiki.wiki.git
git fetch --unshallow old
git push -f origin HEAD:master
git push -f upstream HEAD:master
env:
matrix:
secure: V6RhejfhOSmkSPLCDewCmXOf2L25Q2MutnyK+pZf6o9x5A+Ji6OPI3XNLvpPuRtP3WNYDzwpq0unhDnJO/vWPXlCoIcKT3FLJrBhu5lctsxTzCj2zoVH4nQgmiGUmuPBjoRy6Fl160igYKyKZ7gQGrLAw8l3LUzUN1lsB6z7w4BDSKTdZUckqo/Ks7o+I814Owl4WOQL5xbTrL8GTiotlGvhM1xY+B0aeoYwkRUf9/Fpf0Ftr5aO4wXjs0MD8ckBs36CPt8JxopaQ3izCdW+p2zVJWQwNf+bsVUsMmHckdDx4E4p0TyMTdo1DMvqFdjrEVxv4AlzXEg09PP1PnHaSKwHm3/VhpXI+nBzLUQtcxFWsFgKD3SjuXr5ckjojlD2ihInH1Iwd2KFEftDfI72nErtCLpSLmbIs9c9ve19UXw5PPCYE6L27ERc0CZC3MutEE1OSisd+j219tFxojNSrP3sLOFQkHPjxv+XWrK5sRUHPLaAyzbfiXhm6WktKowfnKwMvK6moYx1It2HIvA/KLz/+NEzAwuAm0Io7dMVMI92znzCTbGgQPIP+wwZXzk14U80r0kn+wOUZS41DFOrK2yDpNZJa/tqJh15l/qBUkmXxYP+36A9vsDiPp5cyi5Br16VisshzQyd/S+pYTZViLy7gJ0mKaGeabEyLo207XA=