From 3ff50e5ce43e31b92a33fa6a773aa791ae11e576 Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Tue, 25 Jan 2022 10:36:27 +0200 Subject: [PATCH] scripts/prepare-release: fix upating of readme Fix the sed script to update the version of kustomize overlay. Also, add a sed script to update the documentation link to point to the correct version in gh-pages. --- scripts/prepare-release.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/prepare-release.sh b/scripts/prepare-release.sh index 7015978ae8..5bbbe6269f 100755 --- a/scripts/prepare-release.sh +++ b/scripts/prepare-release.sh @@ -93,7 +93,9 @@ if [ -z "$assets_only" ]; then # Patch README echo Patching README.md to refer to $release - sed s"!node-feature-discovery/v.*/!node-feature-discovery/$release/!" -i README.md + sed -e s"!\(node-feature-discovery/deployment/.*\)=v.*!\1=$release!" \ + -e s"!^\[documentation\]:.*![documentation]: https://kubernetes-sigs.github.io/node-feature-discovery/$docs_version!" \ + -i README.md # Patch deployment templates echo Patching kustomize templates to use $container_image