Skip to content

Commit 640e280

Browse files
committed
capturing error code from curl
1 parent f415370 commit 640e280

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ unit-test:
2020

2121
deploy:
2222
$(eval VERSION = v$(shell cat VERSION).$(TRAVIS_BUILD_NUMBER)+$(shell git log --format=%h -1))
23-
@curl -H "Authorization: Bearer $(GHK)" \
23+
@echo curl -d '{ "tag_name": "$(VERSION)", "target_commitish": "$(TRAVIS_COMMIT)", "name": "$(VERSION)", "body": "Automatic Release of $(VERSION)", "draft": false, "prerelease": false }' \
24+
"https://api.github.com/repos/$(SLUG)/releases"
25+
@curl -f -H "Authorization: Bearer $(GHK)" \
2426
-d '{ "tag_name": "$(VERSION)", "target_commitish": "$(TRAVIS_COMMIT)", "name": "$(VERSION)", "body": "Automatic Release of $(VERSION)", "draft": false, "prerelease": false }' \
2527
"https://api.github.com/repos/$(SLUG)/releases"
2628

0 commit comments

Comments
 (0)