Skip to content

Commit

Permalink
use release version
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v committed Dec 21, 2023
1 parent a7b9237 commit 9781ad0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions release.mk
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ 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"; ""; "")')
RELEASE_BRANCH ?= $(PROJECT_MAJOR_VERSION).$(PROJECT_MINOR_VERSION)
NEXT_PROJECT_MINOR_VERSION ?= $(PROJECT_MAJOR_VERSION).$(shell expr $(PROJECT_MINOR_VERSION) + 1).0
NEXT_RELEASE ?= $(RELEASE_BRANCH).$(shell expr $(PROJECT_PATCH_VERSION) + 1)
Expand Down Expand Up @@ -99,7 +98,7 @@ minor-release:

@echo "INFO: Create feature branch and update the versions. Target branch $(BASE_BRANCH)"
$(MAKE) create-branch NAME=update-$(RELEASE_VERSION) BASE=$(BASE_BRANCH)
$(MAKE) update-docs VERSION=$(CURRENT_RELEASE)
$(MAKE) update-docs VERSION=$(RELEASE_VERSION)
$(MAKE) update-mergify VERSION=$(RELEASE_BRANCH)
$(MAKE) update-version VERSION=$(NEXT_PROJECT_MINOR_VERSION)
$(MAKE) create-commit COMMIT_MESSAGE="[Release] update version $(NEXT_PROJECT_MINOR_VERSION)"
Expand Down

0 comments on commit 9781ad0

Please sign in to comment.