deep checkout so we actually get tag names in CI

This commit is contained in:
Wagyourtail 2022-06-03 14:46:39 -06:00
parent f699be7973
commit 2b4da2a46c
No known key found for this signature in database
GPG Key ID: 919725C5A647667A
2 changed files with 5 additions and 1 deletions

View File

@ -13,7 +13,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up JDK 8
uses: actions/setup-java@v2
with:

View File

@ -20,6 +20,7 @@ group 'baritone'
def vers = 'git describe --always --tags --dirty'.execute().text.trim();
if (!vers.startsWith("v")) {
println "git doesn't appear to be installed!"
println "using version number: " + project.mod_version
version project.mod_version
} else {
version vers.substring(1)