Skip to content

Commit 30bd114

Browse files
committed
Update Renovate config to handle shared-workflows tag convention
Documented in grafana/shared-workflows#1164 Signed-off-by: Jack Baldry <[email protected]>
1 parent ca9494d commit 30bd114

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/renovate-config.json5

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,16 @@
5858
enabled: false,
5959
description: "The repository publishes this image on every push.",
6060
},
61+
{
62+
matchPackageNames: ["grafana/shared-workflows"],
63+
versioning: "regex:^(?<compatibility>.*)[-/]v?(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)?$",
64+
65+
// By default, the dependency name is the same as the package name.
66+
// For Actions, this is `org/repo`. This means that we'd get all actions from `shared-workflows` in the same branch.
67+
// The shared-workflows tag scheme contains the name of the action being update to as well, so we can grab it from there and set the dep name, then put this in the branch name.
68+
overrideDepName: 'grafana/shared-workflows/{{ lookup (split newVersion "/") 0 }}',
69+
additionalBranchPrefix: "{{depName}}",
70+
},
6171
],
6272
platformCommit: "enabled",
6373
rebaseWhen: "behind-base-branch",

0 commit comments

Comments
 (0)