From 97ceaa8d8f6db5b0407567ba17cec3992d89943b Mon Sep 17 00:00:00 2001 From: fayer3 Date: Sat, 27 Apr 2024 18:17:22 +0200 Subject: [PATCH] fix publish script for neoforge change --- .github/workflows/publish-on-release.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-on-release.yml b/.github/workflows/publish-on-release.yml index e42f9fd89..cdd13fae3 100644 --- a/.github/workflows/publish-on-release.yml +++ b/.github/workflows/publish-on-release.yml @@ -78,7 +78,7 @@ jobs: done < ./fabric/$2 } parse_forge () { - unzip -o -j "$1" "META-INF/mods.toml" -d ./forge + unzip -o -j "$1" "META-INF/$2" -d ./forge minecraftDep=false minecraftIdReg='modId\s+=\s+"minecraft"' versionRangeReg='versionRange\s+=\s+"(.+?)"' @@ -91,7 +91,7 @@ jobs: echo "${BASH_REMATCH[0]}" echo "${BASH_REMATCH[1]}" fi - done < ./forge/mods.toml + done < ./forge/$2 } file="" if [ -n "${{ steps.assets.outputs.FABRIC_FILE_NAME }}" ]; then @@ -147,11 +147,11 @@ jobs: echo "FABRIC_MC_VERSIONS="${parsedVersion}"" >> $GITHUB_OUTPUT fi if [ -n "${{ steps.assets.outputs.FORGE_FILE_NAME }}" ]; then - parse_forge ${{ steps.assets.outputs.FORGE_FILE_NAME }} + parse_forge ${{ steps.assets.outputs.FORGE_FILE_NAME }} "mods.toml" echo "FORGE_MC_VERSIONS="${parsedVersion}"" >> $GITHUB_OUTPUT fi if [ -n "${{ steps.assets.outputs.NEOFORGE_FILE_NAME }}" ]; then - parse_forge ${{ steps.assets.outputs.NEOFORGE_FILE_NAME }} + parse_forge ${{ steps.assets.outputs.NEOFORGE_FILE_NAME }} "neoforge.mods.toml" echo "NEOFORGE_MC_VERSIONS="${parsedVersion}"" >> $GITHUB_OUTPUT fi if [ -n "${{ steps.assets.outputs.QUILT_FILE_NAME }}" ]; then