diff --git a/.github/workflows/nuget-package-template.yml b/.github/workflows/nuget-package-template.yml index 3b19c72..2561f8c 100644 --- a/.github/workflows/nuget-package-template.yml +++ b/.github/workflows/nuget-package-template.yml @@ -108,18 +108,8 @@ jobs: id: extract_description run: | # Extracts multiline release-note between (%release-note: and %) - DESCRIPTION=$(git log -1 --pretty=format:"%b" | awk ' - # Start capturing when (%release-note: is found - /(%release-note:/ { - flag=1; sub(/.*\(%release-note: */, ""); print; next - } - # Stop capturing when %) is found - / *%\)/ { - sub(/%\).*/, ""); print; flag=0; next - } - # If flag is on, continue printing lines - flag {print} - ') + DESCRIPTION=$(git log -1 --pretty=format:"%b" | grep -oP '(?s)(?<=\(%release-note:)(.*?)(?=\s*%\))') + if [[ -z "$DESCRIPTION" ]]; then DESCRIPTION="No release notes provided." fi diff --git a/src/DfE.CoreLibs.Caching/readme.md b/src/DfE.CoreLibs.Caching/readme.md index a00da2c..3233aaa 100644 --- a/src/DfE.CoreLibs.Caching/readme.md +++ b/src/DfE.CoreLibs.Caching/readme.md @@ -23,6 +23,7 @@ dotnet add package DfE.CoreLibs.Caching } ``` + 2. **Usage in Handlers:** Here's an example of how caching is used in one of your query handlers: ```csharp