Update 2 files

- /GitLab.CrossRepoSync.sh
- /GitLab.Main.sh
This commit is contained in:
octt 2023-03-24 11:38:21 +00:00
parent d3478394b2
commit e0528394e6
2 changed files with 13 additions and 8 deletions

View File

@ -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

View File

@ -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