fix CI not having access to git when run via gradle

This commit is contained in:
Wagyourtail 2022-06-03 14:29:51 -06:00
parent 1caa99fee3
commit ed381d6b33
No known key found for this signature in database
GPG Key ID: 919725C5A647667A
3 changed files with 3 additions and 3 deletions

View File

@ -24,7 +24,7 @@ jobs:
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build
run: ./gradlew build -Pmod_version=$(git describe --always --tags | cut -c2-)
- name: Archive Artifacts
uses: actions/upload-artifact@v2

View File

@ -19,7 +19,7 @@ group 'baritone'
def vers = 'git describe --always --tags --dirty'.execute().text.trim();
if (!vers.startsWith("v")) {
version project.mod_version + "+" + "local_build";
version project.mod_version;
} else {
version vers.substring(1)
}

View File

@ -15,4 +15,4 @@
# along with Baritone. If not, see <https://www.gnu.org/licenses/>.
#
mod_version = 1.2.15
mod_version = 1.2.15-local