Change value conditionally in YAML

cat file.yaml| yq e '(select(.Tags["Some Key"] == "old value") | .Tags["Some Key"]) = "new value"'