fix: commit only when website has been updated
parent
28a5378e92
commit
680c71503c
|
@ -109,9 +109,12 @@ deploy() {
|
|||
/bin/rm -rf *
|
||||
cp -r $tmp_dir/* .
|
||||
git add --all
|
||||
if [ ! -z $(git status --porcelain) ];
|
||||
then
|
||||
git commit \
|
||||
--author="$3" \
|
||||
--message="new deploy: $(date --iso-8601=seconds)"
|
||||
fi
|
||||
git checkout $original_branch
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue