diff --git a/default.json5 b/default.json5 index 9b47dd3..5bb6227 100644 --- a/default.json5 +++ b/default.json5 @@ -80,4 +80,21 @@ description: "Update Gradle wrapper to non-stable versions", ignoreUnstable: false, }, + customManagers: [ + { + customType: "regex", + description: "GitHub Actions latest runners", + fileMatch: [ + "^(workflow-templates|\\.github\\/workflows)\\/[^/]+\\.[Yy][Aa]?[Mm][Ll]$", + "(^|\\/)action\\.[Yy][Aa]?[Mm][Ll]$", + ], + matchStrings: [ + "runs-on:\\s+(?ubuntu|macos|windows)-(?.+)", + ], + datasourceTemplate: "github-runners", + versioningTemplate: "docker", + currentValueTemplate: "{{#if (equals currentValue 'latest')}}22.04{{else}}{{{currentValue}}}{{/if}}", + autoReplaceStringTemplate: "runs-on: {{{depName}}}-{{{newValue}}}", + }, + ] }