home-assistant-custom-components.ha_mcp_tools: restrict update script to release versions
Same fix as the previous commit for the standalone ha-mcp package. The upstream repo tags dev builds (v6.6.1.dev211) alongside releases, causing the update bot to open unwanted PRs (e.g. #490375). Add a --version-regex that matches only three-segment release versions.
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
lib,
|
||||
buildHomeAssistantComponent,
|
||||
fetchFromGitHub,
|
||||
nix-update-script,
|
||||
}:
|
||||
|
||||
buildHomeAssistantComponent rec {
|
||||
@@ -16,6 +17,10 @@ buildHomeAssistantComponent rec {
|
||||
hash = "sha256-yAJbvfIH5ewRTip8whbOKxE479qAihESaiLFTnhpRkY=";
|
||||
};
|
||||
|
||||
passthru.updateScript = nix-update-script {
|
||||
extraArgs = [ "--version-regex=^v([0-9]+\\.[0-9]+\\.[0-9]+)$" ];
|
||||
};
|
||||
|
||||
meta = {
|
||||
changelog = "https://github.com/homeassistant-ai/ha-mcp/releases/tag/v${version}";
|
||||
description = "Home Assistant custom component for the MCP (Model Context Protocol) server";
|
||||
|
||||
Reference in New Issue
Block a user