mirror of https://gitlab.com/octtspacc/OcttKB
Update 2 files
- /GitLab.CrossRepoSync.sh - /GitLab.Main.sh
This commit is contained in:
parent
d3478394b2
commit
e0528394e6
|
@ -1,13 +1,8 @@
|
|||
#!/bin/sh
|
||||
TargetRepo="OcttKB.Web"
|
||||
cd ./Wiki
|
||||
tiddlywiki \
|
||||
--verbose \
|
||||
--output ./Output.tmp \
|
||||
--rendertiddler "$:/core/save/all" "index.html" "text/plain"
|
||||
git clone --depth 1 https://gitlab.com/octtspacc/$TargetRepo ./$TargetRepo
|
||||
cd ./$TargetRepo
|
||||
cp -r ../Output.tmp/index.html ./public/index.html
|
||||
git clone --depth 1 https://gitlab.com/octtspacc/$TargetRepo ./Repo-$TargetRepo
|
||||
cd ./Repo-$TargetRepo
|
||||
cp -v ../Output.tmp/index.html ./public/index.html
|
||||
git add .
|
||||
git commit -m "OcttKB Cross-Repo Sync (Raw to HTML)"
|
||||
git push
|
||||
|
|
|
@ -1,6 +1,16 @@
|
|||
#!/bin/sh
|
||||
sh ./OcttKB.EmptyDate.sh
|
||||
sh ./SetupGitProfile.sh
|
||||
|
||||
tiddlywiki \
|
||||
./Wiki \
|
||||
--verbose \
|
||||
--output ./Output.tmp \
|
||||
--rendertiddler "$:/core/save/all" "index.html" "text/plain"
|
||||
|
||||
mkdir -vp ./public
|
||||
cp -v ./Output.tmp/index.html ./public/index.html
|
||||
|
||||
CommitCheck="$(git log -1 --pretty=%B)"
|
||||
CommitMsg0="OcttKB Cross-Repo Sync"
|
||||
[ "$CommitCheck" != "$CommitMsg0 (HTML to Raw)" ] && [ "$CommitCheck" != "$CommitMsg0 (Raw to HTML)" ] && sh ./GitLab.CrossRepoSync.sh || true
|
||||
|
|
Loading…
Reference in New Issue