From 78850e8b2d17b89caa612b7e771aa3577aed8bac Mon Sep 17 00:00:00 2001 From: Andrew White Date: Tue, 12 Nov 2024 18:53:29 -0700 Subject: [PATCH] chore: ci fixes --- release.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/release.sh b/release.sh index fb3cda0e..5bac440b 100755 --- a/release.sh +++ b/release.sh @@ -12,18 +12,22 @@ do done # Update the Version property in Directory.Build.props: +echo "Updating version in Directory.Build.props" sed -E -i 's|.*|'"${version}"'|g' src/Directory.Build.props # Update the version in readme and docs files with elements: +echo "Updating version in README.md and docs" sed -E -i 's|.*|'"${version}"'|g' README.md docs/*.md # Set text to display whether the release is public feed or private feed: -sed -E -i 's|.*|'"${feed_type}"'|g' README.md docs/*.md +# sed -E -i 's|.*|'"${feed_type}"'|g' README.md docs/*.md # Set text wherever release notes are needed in docs: +echo "Set text wherever release notes are needed in docs" perl -i -0777 -pe 's|.*|\n'"${release_notes}"'\n|s' docs/*.md # Set text for release notes in readme (header line stripped): +echo "Set text for release notes in readme (header line stripped)" release_notes_no_header=$(echo -e "${release_notes}" | tail -n +2) perl -i -0777 -pe 's|.*|\n'"${release_notes_no_header}"'\n|s' README.md