Skip to content

Commit 13faccf

Browse files
Farshad DASHTIFarshad DASHTI
authored andcommitted
Updated release note indicator
(%release-note:Updated release note indicator 2%)
1 parent cf7c3ff commit 13faccf

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

.github/workflows/nuget-package-template.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,18 @@ jobs:
108108
id: extract_description
109109
run: |
110110
# Extracts multiline release-note between (%release-note: and %)
111-
DESCRIPTION=$(git log -1 --pretty=format:"%b" | awk '/\(%release-note:/{flag=1; sub(/.*\(%release-note:/, ""); next} /%\)/{flag=0; sub(/%\).*/, ""); print; next} flag {print}')
112-
111+
DESCRIPTION=$(git log -1 --pretty=format:"%b" | awk '
112+
# Start capturing when (%release-note: is found
113+
/(%release-note:/ {
114+
flag=1; sub(/.*\(%release-note: */, ""); print; next
115+
}
116+
# Stop capturing when %) is found
117+
/ *%\)/ {
118+
sub(/%\).*/, ""); print; flag=0; next
119+
}
120+
# If flag is on, continue printing lines
121+
flag {print}
122+
')
113123
if [[ -z "$DESCRIPTION" ]]; then
114124
DESCRIPTION="No release notes provided."
115125
fi

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ For example, name the file `pack-FileService.yml` for your new library.
8181
nuget_package_name: DfE.CoreLibs.FileService
8282
8383
```
84-
8584

8685
Workflows Explanation
8786
---------------------

src/DfE.CoreLibs.Caching/readme.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ dotnet add package DfE.CoreLibs.Caching
2323
}
2424
```
2525

26-
2726
2. **Usage in Handlers:** Here's an example of how caching is used in one of your query handlers:
2827

2928
```csharp

0 commit comments

Comments
 (0)