Skip to content

Commit 9c58f6e

Browse files
committed
Improve the release note extraction
1 parent 08944b5 commit 9c58f6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.circleci/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ jobs:
284284
key: nerves/deploy/{{ checksum ".target" }}-{{ .Revision }}-{{ .Environment.CIRCLE_TAG }}
285285
- run:
286286
name: Create release notes - FAILS if tag isn't in CHANGELOG.md
287-
command: grep -Pazo "(?s)(?<=## ${CIRCLE_TAG})[^#]+" ~/deploy/CHANGELOG.md | sed '/./,$!d' > ~/deploy/RELEASE_NOTES
287+
command: awk -v tag="## ${CIRCLE_TAG}" 'BEGIN {found=0} $0 ~ tag {found=1; next} found && /^##/ {found=0} found {print}' ~/deploy/CHANGELOG.md | sed '/./,$!d' > ~/deploy/RELEASE_NOTES
288288
- store_artifacts:
289289
path: ~/deploy
290290
destination: images

0 commit comments

Comments
 (0)