diff options
author | Tobias Roeser <le.petit.fou@web.de> | 2019-04-16 10:48:50 +0200 |
---|---|---|
committer | Tobias Roeser <le.petit.fou@web.de> | 2019-04-16 10:48:50 +0200 |
commit | 42fcbe7b2d5e51b1e7a351bdd91ce96c87fdfbb2 (patch) | |
tree | 73d3837779c770277cc0696a2bb431db8df645da | |
parent | 43aa53e3670d562826445ce7e7d7a5f8d84a411c (diff) | |
download | mill-42fcbe7b2d5e51b1e7a351bdd91ce96c87fdfbb2.tar.gz mill-42fcbe7b2d5e51b1e7a351bdd91ce96c87fdfbb2.tar.bz2 mill-42fcbe7b2d5e51b1e7a351bdd91ce96c87fdfbb2.zip |
Try to debug travis/github release workflow
-rw-r--r-- | ci/upload.sc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ci/upload.sc b/ci/upload.sc index d6aa96e2..740f3b58 100644 --- a/ci/upload.sc +++ b/ci/upload.sc @@ -18,12 +18,16 @@ def apply(uploadedFile: Path, tagName: String, uploadName: String, authKey: String): String = { - val body = Http("https://api.github.com/repos/lihaoyi/mill/releases/tags/" + tagName) + + val response = Http(s"https://api.github.com/repos/lihaoyi/mill/releases/tags/${tagName}") .header("Authorization", "token " + authKey) - .asString.body + .header("Accept", "application/vnd.github.v3+json") + .asString + val body = response.body val parsed = ujson.read(body) + println("Response code: " + response.code) println(body) val snapshotReleaseId = parsed("id").num.toInt |