From d3db3c1f52abc6a8d9b6b52fe10c967fd252419f Mon Sep 17 00:00:00 2001 From: Baptiste Augrain Date: Tue, 13 Jun 2023 15:24:24 +0200 Subject: [PATCH] ci: add log when updating version [skip ci] --- update_version.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/update_version.sh b/update_version.sh index ce7aa28..29e2ca9 100755 --- a/update_version.sh +++ b/update_version.sh @@ -169,12 +169,18 @@ git add . CHANGES=$( git status --porcelain ) if [[ ! -z "${CHANGES}" ]]; then + echo "${CHANGES}" + dateAndMonth=$( date "+%D %T" ) + git commit -m "CI update: ${dateAndMonth} (Build ${GITHUB_RUN_NUMBER})" + if ! git push origin master --quiet; then git pull origin master git push origin master --quiet fi +else + echo "No changes" fi cd ..