Skip to content

Commit a34987a

Browse files
committed
[ci skip] chore: get latest release
1 parent ee839a2 commit a34987a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ fun lastReleaseCommitMessages(): String {
4646
connection.requestMethod = "GET"
4747
connection.setRequestProperty("Accept", "application/vnd.github.v3+json")
4848
val response = connection.inputStream.bufferedReader().use { it.readText() }
49-
val targetCommitish = JsonParser.parseString(response).asJsonArray.get(1).asJsonObject.get("target_commitish").asString
49+
val targetCommitish = JsonParser.parseString(response).asJsonArray.get(0).asJsonObject.get("target_commitish").asString
5050

5151
val sha = if (targetCommitish.matches(Regex("^[a-f0-9]{40}$"))) {
5252
targetCommitish

0 commit comments

Comments
 (0)