Skip to content

Commit

Permalink
fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
fayer3 committed Nov 21, 2023
1 parent 56094b0 commit 8533db1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish-on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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+"(.+?)"'
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8533db1

Please sign in to comment.