From d0457edb6c76d28d82f35b468c3c057721465854 Mon Sep 17 00:00:00 2001 From: Farshad DASHTI Date: Wed, 9 Oct 2024 14:49:00 +0100 Subject: [PATCH] Updated release note indicator (%release-note:Updated release note indicator%) --- .github/workflows/nuget-package-template.yml | 2 +- src/DfE.CoreLibs.Caching/readme.md | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nuget-package-template.yml b/.github/workflows/nuget-package-template.yml index 0cad8c9..6cfda1c 100644 --- a/.github/workflows/nuget-package-template.yml +++ b/.github/workflows/nuget-package-template.yml @@ -108,7 +108,7 @@ jobs: id: extract_description run: | # Extracts multiline release-note between (%release-note: and %) - DESCRIPTION=$(git log -1 --pretty=format:"%b" | grep -oP '(?<=\(%release-note: ?).*?(?= ?%\))') + DESCRIPTION=$(git log -1 --pretty=format:"%b" | sed -n 's/.*(%release-note:*\([^%]*\) *%).*/\1/p') if [[ -z "$DESCRIPTION" ]]; then DESCRIPTION="No release notes provided." 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