Skip to content

Commit cd7b71d

Browse files
authored
Fixing readme.md script (#1525)
1 parent 80e41c7 commit cd7b71d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.circleci/config.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -363,16 +363,16 @@ jobs:
363363
# Debugging output
364364
echo "WCM_CORE_COMPONENTS_VERSION: $WCM_CORE_COMPONENTS_VERSION"
365365
366-
echo "Before sed: $(cat VERSIONS.md)"
366+
# echo "Before sed: $(cat VERSIONS.md)"
367367
# update versions.md
368368
sed -i "/$LAST_VERSION/ { p; b; }; 1,/$LAST_VERSION/ { p; d; }" VERSIONS.md
369-
sed -i -E "0,/(\| $LAST_VERSION\s*\|) [0-9]+\.[0-9]+\.[0-9]+\s*\|/s//| $NEW_VERSION \| $WCM_CORE_COMPONENTS_VERSION |/" VERSIONS.md
370-
echo "After sed: $(cat VERSIONS.md)"
369+
sed -i -E "0,/(\| $LAST_VERSION\s*\|) [0-9]+\.[0-9]+\.[0-9]+\+?\s*\|/s//| $NEW_VERSION \| $WCM_CORE_COMPONENTS_VERSION |/" VERSIONS.md
370+
# echo "After sed: $(cat VERSIONS.md)"
371371
372-
echo "Before sed: $(cat README.md)"
372+
# echo "Before sed: $(cat README.md)"
373373
# update readme.md
374-
sed -i -E "s/(\| $LAST_VERSION\s*\|) [0-9]+\.[0-9]+\.[0-9]+ \s*\| /| $NEW_VERSION | $WCM_CORE_COMPONENTS_VERSION | /g" README.md
375-
echo "After sed: $(cat README.md)"
374+
sed -i -E "s/(\| $LAST_VERSION\s*\|) [0-9]+\.[0-9]+\.[0-9]+\+? \s*\| /| $NEW_VERSION | $WCM_CORE_COMPONENTS_VERSION | /g" README.md
375+
# echo "After sed: $(cat README.md)"
376376
377377
# Check if package-lock.json is modified
378378
if [[ $(git status --porcelain | grep "package-lock.json") ]]; then

0 commit comments

Comments
 (0)