Skip to content

Commit

Permalink
improve mod.json finding (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
Prevter authored Nov 3, 2024
1 parent b68f9b8 commit fa00cb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ runs:
geode sdk update stable
geode sdk install-binaries --platform ${{ steps.platform.outputs.target_id }}
elif [ "${{ inputs.sdk }}" == "given" ]; then
export MOD_JSON_PATH=$(find . -name "mod.json" -not -path "./geode-sdk-clone/*" -print -quit)
export MOD_JSON_PATH=$(find . -name "mod.json" -not -path "./geode-sdk-clone/*" -print | sort -r | head -n 1)
export TARGET_GEODE_VERSION=$(jq -r '.geode' $MOD_JSON_PATH)
echo "Updating to version $TARGET_GEODE_VERSION from $MOD_JSON_PATH"
geode sdk update "$TARGET_GEODE_VERSION"
Expand Down

0 comments on commit fa00cb2

Please sign in to comment.