From b22b0576362a57f8f359c2d24c79c9b66bcb6e84 Mon Sep 17 00:00:00 2001 From: Matthew Andrews Date: Mon, 20 Jun 2016 15:40:45 +0100 Subject: [PATCH] Use semver API --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 88a28c8..899597a 100644 --- a/Makefile +++ b/Makefile @@ -131,7 +131,7 @@ public/__about.json: # UPDATE TASK update-tools: - $(eval LATEST = $(shell curl -fs https://api.github.com/repos/Financial-Times/n-makefile/tags | $(call JSON_GET_VALUE,name))) + $(eval LATEST = $(shell curl -fs https://api.mattandre.ws/semver/github/Financial-Times/n-makefile)) $(if $(filter $(LATEST), $(VERSION)), $(error Cannot update n-makefile, as it is already up to date!)) @curl -sL https://raw.githubusercontent.com/Financial-Times/n-makefile/$(LATEST)/Makefile > n.Makefile @sed -i "" "s/^VERSION = master/VERSION = $(LATEST)/" n.Makefile