diff --git a/renovate.json b/renovate.json index dccc9dd..8e5fb72 100644 --- a/renovate.json +++ b/renovate.json @@ -24,10 +24,55 @@ "matchManagers": [ "gomod" ], + "matchDepTypes": [ + "golang" + ], + "rangeStrategy": "bump" + }, + { + "matchManagers": [ + "custom.regex" + ], "matchDepNames": [ - "go" + "env0/env0-import-variable-plugin" + ], + "automerge": true, + "automergeType": "pr", + "minimumReleaseAge": "0 days", + "schedule": [ + "at any time" + ], + "commitMessagePrefix": "chore:", + "commitMessageAction": "Update", + "commitMessageTopic": "README plugin version", + "commitMessageExtra": "to {{newVersion}}", + "ignoreUnstable": true + } + ], + "customManagers": [ + { + "customType": "regex", + "description": "Update Docker images used in workflow run scripts", + "managerFilePatterns": [ + "/^\\.github/workflows/[^/]+\\.ya?ml$/" + ], + "matchStrings": [ + "docker run [^\\n]*?\\s(?[a-z0-9][a-z0-9._/-]*):(?\\d[\\w.-]*)\\s" + ], + "datasourceTemplate": "docker" + }, + { + "customType": "regex", + "description": "Update the plugin version in the README example", + "managerFilePatterns": [ + "/^README\\.md$/" + ], + "matchStrings": [ + "github\\.com/env0/env0-import-variable-plugin@(?[^\\s`]+)" ], - "enabled": false + "depNameTemplate": "env0/env0-import-variable-plugin", + "datasourceTemplate": "github-releases", + "versioningTemplate": "semver" } ] }