From 46988716a9cf315819f46abc948b4a4682c313e0 Mon Sep 17 00:00:00 2001 From: Shreyas Rao Date: Sat, 19 Sep 2020 20:33:16 +0530 Subject: [PATCH] Update CI pipeline Signed-off-by: Shreyas Rao --- .ci/update_version | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.ci/update_version b/.ci/update_version index 3642514..e75fa7f 100755 --- a/.ci/update_version +++ b/.ci/update_version @@ -41,6 +41,9 @@ echo "git diff:" git --no-pager diff echo -echo "Publishing version change" -git diff-index --quiet HEAD || git commit -am "Updated etcd image version to $VERSION" -git --no-pager log -1 +if git diff-index --quiet HEAD; [ $? -eq 0 ] ; then + echo "No version change" +else + echo "Publishing version change" + git commit -am "Updated etcd image version to $VERSION" || git --no-pager log -1 +fi \ No newline at end of file