Skip to content

Commit

Permalink
actually check for sdk: given
Browse files Browse the repository at this point in the history
  • Loading branch information
matcool authored Jun 14, 2024
1 parent bddd5bc commit 5c6ddb2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -230,12 +230,15 @@ runs:
elif [ "${{ inputs.sdk }}" == "latest" ]; then
geode sdk update stable
geode sdk install-binaries --platform ${{ steps.platform.outputs.target_id }}
else
elif [ "${{ inputs.sdk }}" == "given" ]; then
export MOD_JSON_PATH=$(find . -name "mod.json" -not -path "./geode-sdk-clone/*" -print -quit)
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"
geode sdk install-binaries --platform ${{ steps.platform.outputs.target_id }} --version "$TARGET_GEODE_VERSION"
else
geode sdk update ${{ inputs.sdk }}
geode sdk install-binaries --platform ${{ steps.platform.outputs.target_id }}
fi
export CPM_CACHE="${{ github.workspace }}/cpm-cache"
Expand Down

0 comments on commit 5c6ddb2

Please sign in to comment.