Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-11-20 06:50:09 +01:00
Fixed GitHub Action run numbers
Dieser Commit ist enthalten in:
Ursprung
277396525f
Commit
f2d83c4ed1
@ -97,7 +97,7 @@ configure<BlossomExtension> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun Project.buildNumber(): Int =
|
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 {
|
inner class GitInfo {
|
||||||
val branch: String
|
val branch: String
|
||||||
@ -129,3 +129,6 @@ inner class GitInfo {
|
|||||||
repository = git?.repository?.config?.getString("remote", "origin", "url") ?: ""
|
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")
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren