mirror of https://github.com/cabaletta/baritone
fix CI not having access to git when run via gradle
This commit is contained in:
parent
1caa99fee3
commit
ed381d6b33
|
@ -24,7 +24,7 @@ jobs:
|
||||||
run: chmod +x gradlew
|
run: chmod +x gradlew
|
||||||
|
|
||||||
- name: Build with Gradle
|
- name: Build with Gradle
|
||||||
run: ./gradlew build
|
run: ./gradlew build -Pmod_version=$(git describe --always --tags | cut -c2-)
|
||||||
|
|
||||||
- name: Archive Artifacts
|
- name: Archive Artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
|
|
|
@ -19,7 +19,7 @@ group 'baritone'
|
||||||
|
|
||||||
def vers = 'git describe --always --tags --dirty'.execute().text.trim();
|
def vers = 'git describe --always --tags --dirty'.execute().text.trim();
|
||||||
if (!vers.startsWith("v")) {
|
if (!vers.startsWith("v")) {
|
||||||
version project.mod_version + "+" + "local_build";
|
version project.mod_version;
|
||||||
} else {
|
} else {
|
||||||
version vers.substring(1)
|
version vers.substring(1)
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,4 +15,4 @@
|
||||||
# along with Baritone. If not, see <https://www.gnu.org/licenses/>.
|
# along with Baritone. If not, see <https://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
mod_version = 1.2.15
|
mod_version = 1.2.15-local
|
Loading…
Reference in New Issue