We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 08944b5 commit 9c58f6eCopy full SHA for 9c58f6e
.circleci/config.yml
@@ -284,7 +284,7 @@ jobs:
284
key: nerves/deploy/{{ checksum ".target" }}-{{ .Revision }}-{{ .Environment.CIRCLE_TAG }}
285
- run:
286
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
+ 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
288
- store_artifacts:
289
path: ~/deploy
290
destination: images
0 commit comments