Skip to content
Discussion options

You must be logged in to vote

I managed to do it like this:

{
  "packageRules": [
    {
      "matchDepTypes": [ "action" ],
      "commitMessageTopic": "{{{depName}}} action"
    }
  ],
  "customManagers": [
    {
      "customType": "regex",
      "fileMatch": [
        "github-actions\\/dependencies.nix"
      ],
      "matchStrings": [
        "\"(?<depName>[a-zA-Z0-9\\/-]*)@(?<currentDigest>[a-f0-9]{40})\";\\s*#\\s*(?<currentValue>[^\\r\\n]+)[\\r|\\n|$]",
        "\"(?<depName>[a-zA-Z0-9\\/-]*)@(?<currentValue>[^\"]+)\";[\\r|\\n|$]"
      ],
      "autoReplaceStringTemplate": "\"{{depName}}@{{#if newDigest}}{{newDigest}}\";{{#if newValue}} # {{newValue}}\n{{/if}}{{/if}}{{#unless newDigest}}{{newValue}}\";\n{{/unl…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by budimanjojo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant