mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Fixed GitHub Action run numbers
This commit is contained in:
parent
277396525f
commit
f2d83c4ed1
1 changed files with 4 additions and 1 deletions
|
@ -97,7 +97,7 @@ configure<BlossomExtension> {
|
|||
}
|
||||
|
||||
fun Project.buildNumber(): Int =
|
||||
System.getenv("BUILD_NUMBER")?.let { Integer.parseInt(it) } ?: -1
|
||||
(System.getenv("GITHUB_RUN_NUMBER") ?: jenkinsBuildNumber())?.let { Integer.parseInt(it) } ?: -1
|
||||
|
||||
inner class GitInfo {
|
||||
val branch: String
|
||||
|
@ -129,3 +129,6 @@ inner class GitInfo {
|
|||
repository = git?.repository?.config?.getString("remote", "origin", "url") ?: ""
|
||||
}
|
||||
}
|
||||
|
||||
// todo remove this when we're not using Jenkins anymore
|
||||
private fun jenkinsBuildNumber(): String? = System.getenv("BUILD_NUMBER")
|
||||
|
|
Loading…
Reference in a new issue