diff --git a/.github/workflows/publish-on-release.yml b/.github/workflows/publish-on-release.yml index a7b8dd97f..e42f9fd89 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" "$2" -d ./forge + unzip -o -j "$1" "META-INF/mods.toml" -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/$2 + done < ./forge/mods.toml } 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 }} "META-INF/mods.toml" + parse_forge ${{ steps.assets.outputs.FORGE_FILE_NAME }} 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 }} "META-INF/mods.toml" + parse_forge ${{ steps.assets.outputs.NEOFORGE_FILE_NAME }} echo "NEOFORGE_MC_VERSIONS="${parsedVersion}"" >> $GITHUB_OUTPUT fi if [ -n "${{ steps.assets.outputs.QUILT_FILE_NAME }}" ]; then