-
Notifications
You must be signed in to change notification settings - Fork 526
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci(release-minor): add apm-
prefix and create release diff between patches
#13065
ci(release-minor): add apm-
prefix and create release diff between patches
#13065
Conversation
apm-
prefix and create release diff between patches
@@ -39,7 +39,7 @@ PROJECT_PATCH_VERSION ?= $(shell echo $(RELEASE_VERSION) | cut -f3 -d.) | |||
PROJECT_OWNER ?= elastic | |||
RELEASE_TYPE ?= minor | |||
|
|||
CURRENT_RELEASE ?= $(shell gh api repos/elastic/apm-server/releases/latest | jq -r '.tag_name|sub("v"; ""; "")') | |||
CURRENT_RELEASE ?= $(shell gh release list --exclude-drafts --exclude-pre-releases --limit 10 --json tagName --jq '.[].tagName|select(. | startswith("v$(PROJECT_MAJOR_VERSION)"))' | sed 's|v||g' | sort -r | head -n 1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We cannot use latest
as long as latest can point to 7.17
. I've already reported to the release team (Only accessible by Elastic employees)
I decided to use a different approach and filter by the major version and do some manipulation
awk "NR==5{print \"\n* <<release-notes-$(VERSION).0>>\n\n[float]\n[[release-notes-$(VERSION).0]]\n=== APM version $(VERSION).0\"}1" changelogs/$(VERSION).asciidoc > changelogs/$(VERSION).asciidoc.new | ||
mv changelogs/$(VERSION).asciidoc.new changelogs/$(VERSION).asciidoc | ||
echo "$$CHANGELOG_MINOR_TMPL" > changelogs/$(VERSION).asciidoc | ||
tail -n +6 changelogs/head.asciidoc >> changelogs/$(VERSION).asciidoc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as long as head.asciidoc
uses the current format, we can use this approach, so less craziness commands to manipulate the file but using templates
…patches (#13065) (#13088) (cherry picked from commit 1f2c64e) Co-authored-by: Victor Martinez <[email protected]>
…patches (#13065) (#13089) (cherry picked from commit 1f2c64e) Co-authored-by: Victor Martinez <[email protected]>
…etween patches (backport #13065) (#13087) * ci(release-minor): add `apm-` prefix and create release diff between patches (#13065) (cherry picked from commit 1f2c64e) # Conflicts: # release.mk * Update release.mk --------- Co-authored-by: Victor Martinez <[email protected]>
Motivation/summary
Support release automation for FF with:
apm-
prefix to Asciidoc links and targetsTest
produced:
and
Checklist
For functional changes, consider:
How to test these changes
Related issues
Behaviour changed in #12820
Part of #12989