mirror of https://github.com/cabaletta/baritone
deep checkout so we actually get tag names in CI
This commit is contained in:
parent
f699be7973
commit
2b4da2a46c
|
@ -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:
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue