Skip to content

Commit

Permalink
fix(CI): Fetch git tags first
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanilves committed Jan 13, 2019
1 parent 1205f04 commit b6ef9d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ changelog:
sed -r "s|^([0-9a-f]{7,}) (.*)|* [\`\1\`](${GITHUB_COMMIT_URL}/\1) \2|"

release: clean
release: LAST_BUILD_NUMBER:=$(shell git tag --sort=creatordate | grep "^v${API_VERSION}\." | tail -n1 | sed 's/^v.*\.//')
release: LAST_BUILD_NUMBER:=$(shell git fetch --tags && git tag --sort=creatordate | grep "^v${API_VERSION}\." | tail -n1 | sed 's/^v.*\.//')
release: THIS_BUILD_NUMBER:=$(shell expr ${LAST_BUILD_NUMBER} + 1)
release: THIS_RELEASE_NAME:=v${API_VERSION}.${THIS_BUILD_NUMBER}
release:
Expand Down

0 comments on commit b6ef9d3

Please sign in to comment.