Skip to content

Commit 5bd24af

Browse files
committed
Group Renovate's GitHub Actions updates...
across kotlin-script and github-actions managers. Workflows are generated from .main.kts sources, so each action is tracked twice by Renovate (once as a maven coordinate via @file:DependsOn, once as a github-actions ref in the generated YAML). Updates landed as two PRs that each failed because only one half was bumped. Normalize both manager package names to a shared `owner/name[/sub]` group key so each action gets a single combined PR.
1 parent a6037c2 commit 5bd24af

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.github/renovate.json5

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,24 @@
4343
{
4444
matchPackageNames: ["/^org.spockframework:spock-/"],
4545
versionCompatibility: "^(?<version>.*)-(?<compatibility>groovy-.*)$"
46+
},
47+
// GitHub Actions are referenced from both the generated workflow YAML
48+
// (github-actions manager) and the .main.kts sources (kotlin-script
49+
// manager via typesafegithub workflows-kt). The two managers see them as
50+
// separate packages, so updates land in two PRs that each fail because
51+
// only one half is bumped. Normalize both to a shared group key derived
52+
// from the action's `owner/name[/sub]` slug:
53+
// kotlin-script: `owner:name[__sub]___major` -> strip `___major`,
54+
// replace `__` with `/`, replace `:` with `/`
55+
// github-actions: already `owner/name[/sub]`
56+
{
57+
matchManagers: ["kotlin-script"],
58+
matchDepNames: ["/___major$/"],
59+
groupName: "gh-action {{ replace ':' '/' (replace '__' '/' (replace '___major' '' depName)) }}"
60+
},
61+
{
62+
matchManagers: ["github-actions"],
63+
groupName: "gh-action {{depName}}"
4664
}
4765
]
4866
}

0 commit comments

Comments
 (0)