From 56f926af5d87d4b22b36ed14a2c42dc2a51c79a8 Mon Sep 17 00:00:00 2001 From: "Cezar.Leahu" Date: Mon, 14 Sep 2020 13:02:59 +0300 Subject: [PATCH] ACS-550 Test downstream repo update (3) [skip tests] [no release] --- scripts/travis/update_downstream.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/scripts/travis/update_downstream.sh b/scripts/travis/update_downstream.sh index 57d38f2025..53a24ff762 100644 --- a/scripts/travis/update_downstream.sh +++ b/scripts/travis/update_downstream.sh @@ -30,10 +30,14 @@ mvn versions:set-property versions:commit \ git status git --no-pager diff pom.xml git add pom.xml -git commit -m "Update upstream version to ${VERSION}" -#todo enable this -#git push -git status + +if git status --untracked-files=no --porcelain | grep -q '^' ; then + git commit -m "Update upstream version to ${VERSION}" + git push +else + echo "Dependencies are already up to date." + git status +fi popd