mirror of https://github.com/cabaletta/baritone
Slightly better version strings
This commit is contained in:
parent
30f27d43e7
commit
20d62c68bf
|
@ -28,7 +28,7 @@ jobs:
|
|||
run: chmod +x gradlew
|
||||
|
||||
- name: Build with Gradle
|
||||
run: ./gradlew build -Pmod_version="$(git describe --always --tags | cut -c2-)"
|
||||
run: ./gradlew build -Pmod_version="$(git describe --always --tags --first-parent | cut -c2-)"
|
||||
|
||||
- name: Archive Artifacts
|
||||
uses: actions/upload-artifact@v3
|
||||
|
|
|
@ -21,7 +21,7 @@ allprojects {
|
|||
apply plugin: "maven-publish"
|
||||
|
||||
archivesBaseName = rootProject.archives_base_name
|
||||
def vers = 'git describe --always --tags --dirty'.execute().text.trim()
|
||||
def vers = 'git describe --always --tags --first-parent --dirty'.execute().text.trim()
|
||||
if (!vers.startsWith("v")) {
|
||||
println "git doesn't appear to be installed!"
|
||||
println "using version number: " + rootProject.mod_version
|
||||
|
|
Loading…
Reference in New Issue