Skip to content

Commit

Permalink
Auto-update ubuntu runners
Browse files Browse the repository at this point in the history
  • Loading branch information
TWiStErRob committed Dec 22, 2024
1 parent 0328269 commit 4a6990e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions default.json5
Original file line number Diff line number Diff line change
Expand Up @@ -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+(?<depName>ubuntu|macos|windows)-(?<currentValue>.+)",
],
datasourceTemplate: "github-runners",
versioningTemplate: "docker",
currentValueTemplate: "{{#if (equals currentValue 'latest')}}22.04{{else}}{{{currentValue}}}{{/if}}",
autoReplaceStringTemplate: "runs-on: {{{depName}}}-{{{newValue}}}",
},
]
}

0 comments on commit 4a6990e

Please sign in to comment.