Slightly better version strings

This commit is contained in:
ZacSharp 2023-10-15 20:50:23 +02:00
parent 30f27d43e7
commit 20d62c68bf
No known key found for this signature in database
GPG Key ID: 9453647B005083A3
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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