Skip to content

Commit

Permalink
Fixing readme.md script (#1525)
Browse files Browse the repository at this point in the history
  • Loading branch information
rismehta authored Feb 10, 2025
1 parent 80e41c7 commit cd7b71d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cd7b71d

Please sign in to comment.