Skip to content

Commit 1e3aa56

Browse files
authored
Merge pull request #699 from monarch-initiative/hotfix/maxoa-file
Hotfix/maxoa file
2 parents a4dddc4 + 3cb2fde commit 1e3aa56

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

src/ontology/maxo.Makefile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,13 @@ MAXOA_RELEASE_PASSWORD=$(shell cat maxoa-key.txt)
109109
$(MAXOA_DIRECTORY)/$(MAXOA_FILENAME): $(SRC)
110110
mkdir -p $(MAXOA_DIRECTORY)
111111
@test $(MAXOA_RELEASE_PASSWORD)
112-
#@release_response=$(shell curl -I -s -o /dev/null -w "%{http_code}" https://poet.jax.org/api/v1/export/release?key=$(MAXOA_RELEASE_PASSWORD))
113-
#@if [ "$$release_response" != "200" ]; then echo "POET Release Failure." && exit 1; fi
114-
@echo "POET Release Skipped!"
115-
@curl -Lk https://poet.jax.org/api/v1/export/maxo >> $@
112+
@release_response=$$(curl -I -s -o /dev/null -w "%{http_code}" https://poet.jax.org/api/v1/export/release?key=$(MAXOA_RELEASE_PASSWORD)); \
113+
if [ "$$release_response" != "200" ]; then \
114+
echo "POET Release Failure. Got HTTP $$release_response"; \
115+
exit 1; \
116+
fi
117+
@echo "POET Release Success!"
118+
@curl -Lk https://poet.jax.org/api/v1/export/maxo > $@
116119

117120
.PHONY: maxoa
118121
maxoa:

0 commit comments

Comments
 (0)