Skip to content

Commit

Permalink
Improve the release note extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
fhunleth committed Jul 14, 2024
1 parent 08944b5 commit 9c58f6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ jobs:
key: nerves/deploy/{{ checksum ".target" }}-{{ .Revision }}-{{ .Environment.CIRCLE_TAG }}
- run:
name: Create release notes - FAILS if tag isn't in CHANGELOG.md
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
- store_artifacts:
path: ~/deploy
destination: images
Expand Down

0 comments on commit 9c58f6e

Please sign in to comment.