Skip to content

Promote Versions trough folders #27871

Closed Answered by TheKangaroo
TheKangaroo asked this question in Request Help
Discussion options

You must be logged in to vote

Okay, I figured this one out. Shoutout to this blog post that pointed me in the right direction. It still took me a few hours to figure out how everything works, so here is the important part of my config:


  customManagers: [
    {
      customType: "regex",
      fileMatch: [".y[a]?ml$"],
      matchStrings: [
        '# renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?) registryUrl=(?<registryUrl>.*?)\\s.*_version:\\s"(?<currentValue>.*?)"\\s',
      ],
    },
  ],
  customDatasources: {
    local: {
      format: "yaml",
      transformTemplates: [
        '{ "releases": [{"version": `{{{replace "-" "_" packageName}}}_version`}]}',
      ],
    },
  },

(In the meantime, …

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@TheKangaroo
Comment options

@mrclrchtr
Comment options

Comment options

You must be logged in to vote
1 reply
@HonkingGoose
Comment options

Answer selected by TheKangaroo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants