From cd7b71da8a51fa42ad940e6b9e4c6e7d04b4e752 Mon Sep 17 00:00:00 2001 From: Rishi Mehta <69448117+rismehta@users.noreply.github.com> Date: Tue, 11 Feb 2025 00:19:20 +0530 Subject: [PATCH] Fixing readme.md script (#1525) --- .circleci/config.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 686fd6ff97..8745e0005a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -363,16 +363,16 @@ jobs: # Debugging output echo "WCM_CORE_COMPONENTS_VERSION: $WCM_CORE_COMPONENTS_VERSION" - echo "Before sed: $(cat VERSIONS.md)" + # echo "Before sed: $(cat VERSIONS.md)" # update versions.md sed -i "/$LAST_VERSION/ { p; b; }; 1,/$LAST_VERSION/ { p; d; }" VERSIONS.md - sed -i -E "0,/(\| $LAST_VERSION\s*\|) [0-9]+\.[0-9]+\.[0-9]+\s*\|/s//| $NEW_VERSION \| $WCM_CORE_COMPONENTS_VERSION |/" VERSIONS.md - echo "After sed: $(cat VERSIONS.md)" + sed -i -E "0,/(\| $LAST_VERSION\s*\|) [0-9]+\.[0-9]+\.[0-9]+\+?\s*\|/s//| $NEW_VERSION \| $WCM_CORE_COMPONENTS_VERSION |/" VERSIONS.md + # echo "After sed: $(cat VERSIONS.md)" - echo "Before sed: $(cat README.md)" + # echo "Before sed: $(cat README.md)" # update readme.md - sed -i -E "s/(\| $LAST_VERSION\s*\|) [0-9]+\.[0-9]+\.[0-9]+ \s*\| /| $NEW_VERSION | $WCM_CORE_COMPONENTS_VERSION | /g" README.md - echo "After sed: $(cat README.md)" + sed -i -E "s/(\| $LAST_VERSION\s*\|) [0-9]+\.[0-9]+\.[0-9]+\+? \s*\| /| $NEW_VERSION | $WCM_CORE_COMPONENTS_VERSION | /g" README.md + # echo "After sed: $(cat README.md)" # Check if package-lock.json is modified if [[ $(git status --porcelain | grep "package-lock.json") ]]; then