From a608f6b4d6df18b55f7c9d21fff20215b72f2578 Mon Sep 17 00:00:00 2001 From: Sahil Ahuja Date: Tue, 4 Mar 2025 21:54:35 +0530 Subject: [PATCH] Debug version --- .github/workflows/cs-update-push.yml | 2 -- src/repo_to_cs.sh | 2 ++ src/repo_to_cs_basetag.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cs-update-push.yml b/.github/workflows/cs-update-push.yml index 6f50a73..1fb0e4f 100644 --- a/.github/workflows/cs-update-push.yml +++ b/.github/workflows/cs-update-push.yml @@ -59,8 +59,6 @@ jobs: pwd; ls -al; cd cs; - - set -x; ../deploy-tools/src/repo_to_cs.sh -m $DOCKER_BASE -t $BUILD_ID -r $REPOLIST; git push origin main; diff --git a/src/repo_to_cs.sh b/src/repo_to_cs.sh index 396f051..7e04785 100755 --- a/src/repo_to_cs.sh +++ b/src/repo_to_cs.sh @@ -39,6 +39,8 @@ main() fi done <<< "$KUST_FILES_LINES" + set -x; + pwd; source $SCRIPT_DIR/repo_to_cs_basetag.sh; # cat $NEW_TAG > version; #To always allow a commit # git add version; diff --git a/src/repo_to_cs_basetag.sh b/src/repo_to_cs_basetag.sh index 61fc3e0..715bb7c 100755 --- a/src/repo_to_cs_basetag.sh +++ b/src/repo_to_cs_basetag.sh @@ -12,7 +12,7 @@ # Based on https://gist.github.com/CSTDev/08c127680e3b5fae38c051da3e489351 # Commit with a log containing #minor or #major to increment the respective version number - +set -x #get highest tag number containing at least 2 dots VERSION=`git describe --abbrev=0 --tags --match="v[0-9]*\.[0-9]*\.[0-9]*"`