updates:
  - file: "{MAJOR}.{MINOR}/kubernetes-nmstate-operator.v{MAJOR}.{MINOR}.0.clusterserviceversion.yaml" # relative to this file
    update_list:
    # replace metadata.name value
    - search: "kubernetesnmstateoperator.v{MAJOR}.{MINOR}.0"
      replace: "kubernetesnmstateoperator.{FULL_VER}"
    # replace entire version line, otherwise would replace {MAJOR}.{MINOR}.0 anywhere
    - search: "version: {MAJOR}.{MINOR}.0"
      replace: "version: {FULL_VER}"
    - search: 'olm.skipRange: ">=4.4.0 <{MAJOR}.{MINOR}.0"'
      replace: 'olm.skipRange: ">=4.4.0 <{FULL_VER}"'
  - file: "kubernetes-nmstate-operator.package.yaml"
    update_list:
    - search: "currentCSV: kubernetes-nmstate-operator.v{MAJOR}.{MINOR}.0"
      replace: "currentCSV: kubernetes-nmstate-operator.{FULL_VER}"