mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 00:17:11 -07:00
Minor fix.
This commit is contained in:
parent
2468803901
commit
e2b7ef6113
1 changed files with 2 additions and 2 deletions
|
@ -37,7 +37,7 @@ public class GithubApi @Inject constructor(val executors: KobaltExecutors) {
|
|||
}
|
||||
|
||||
fun uploadRelease(): Int {
|
||||
val releaseName = "TestRelease"
|
||||
val releaseName = "0.100"
|
||||
val release = service.getReleaseByTagName(Prop.username, "kobalt", releaseName)
|
||||
|
||||
uploadService.uploadRelease(Prop.username, Prop.accessToken, "kobalt", release.id!!, "zipFile", "label",
|
||||
|
@ -152,7 +152,7 @@ public class GithubApi @Inject constructor(val executors: KobaltExecutors) {
|
|||
// val jo = Parser().parse(ins) as JsonArray<JsonObject>
|
||||
if (jo.size() > 0) {
|
||||
var versionName = (jo.get(0) as JsonObject).get("name").asString
|
||||
if (versionName == null) {
|
||||
if (Strings.isEmpty(versionName)) {
|
||||
versionName = (jo.get(0) as JsonObject).get("tag_name").asString
|
||||
}
|
||||
if (versionName != null) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue