1
0
mirror of https://github.com/chylex/IntelliJ-IdeaVim.git synced 2025-02-23 23:46:03 +01:00

Add logs to release job

This commit is contained in:
Alex Plate 2024-01-30 09:53:51 +02:00
parent 00fb5bc6cf
commit 8ea1f0796c
No known key found for this signature in database
GPG Key ID: 0B97153C8FFEC09F

View File

@ -21,8 +21,12 @@ fun main(args: Array<String>) {
}
withGit(rootDir) { git ->
val currentCommit = git.log().setMaxCount(1).call().first()
println("Current commit id: ${currentCommit.id.name}")
val currentCommits = git.log().setMaxCount(3).call()
println("Last three commits:")
for (currentCommit in currentCommits) {
println(currentCommit.id.name)
}
val currentCommit = currentCommits.first()
git.checkoutBranch("release")
println("Checked out release branch")
@ -32,7 +36,15 @@ fun main(args: Array<String>) {
.call()
println("release branch reset")
val getCurrentCommit = git.log().setMaxCount(1).call().first()
println("Release branch is on $getCurrentCommit")
git.checkoutBranch("master")
println("Checked out master branch")
val currentCommitAgain = git.log().setMaxCount(1).call().first()
println("Current commit: $currentCommitAgain")
}
checkBranch(rootDir, releaseType)
}