fix: commit only when website has been updated

pull/6/head
Aravinth Manivannan 2022-04-16 13:01:30 +05:30
parent 28a5378e92
commit 680c71503c
Signed by: realaravinth
GPG Key ID: AD9F0F08E855ED88
1 changed files with 6 additions and 3 deletions

View File

@ -109,9 +109,12 @@ deploy() {
/bin/rm -rf *
cp -r $tmp_dir/* .
git add --all
git commit \
--author="$3" \
--message="new deploy: $(date --iso-8601=seconds)"
if [ ! -z $(git status --porcelain) ];
then
git commit \
--author="$3" \
--message="new deploy: $(date --iso-8601=seconds)"
fi
git checkout $original_branch
}