From 1014388b0ec05389dccf09eedf6e92a5e9326865 Mon Sep 17 00:00:00 2001 From: Des Herriott Date: Thu, 8 Aug 2024 22:24:52 +0100 Subject: [PATCH] fixed grabbing mc version in CI builds --- .github/workflows/main.yml | 2 +- .github/workflows/release.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index eaf213753..0ddbb1206 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -31,7 +31,7 @@ jobs: - name: Set up mod metadata id: mod_meta run: | - echo mc_version=$(grep ^minecraft_version= ./gradle.properties | cut -d= -f2) >> $GITHUB_OUTPUT + echo mc_version=$(grep ^mc_version= ./gradle.properties | cut -d= -f2) >> $GITHUB_OUTPUT - name: Build JAR and Publish to Modmaven uses: gradle/gradle-build-action@v2 env: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e6d9e62f2..790e27e59 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -42,7 +42,7 @@ jobs: id: mod_meta run: | echo mod_version=$(grep ^mod_version_ ./gradle.properties | cut -d= -f2 | tr '\012' '.' | sed -e 's/\.$//') >> $GITHUB_OUTPUT - echo mc_version=$(grep ^minecraft_version= ./gradle.properties | cut -d= -f2) >> $GITHUB_OUTPUT + echo mc_version=$(grep ^mc_version= ./gradle.properties | cut -d= -f2) >> $GITHUB_OUTPUT - name: Publish to Modmaven uses: gradle/gradle-build-action@v2 env: