diff --git a/.github/renovate.json5 b/.github/renovate.json5 index 10d08b76..04306cb3 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -77,8 +77,20 @@ // Extracted "versions" include the package name, so here we strip that prefix using a regex. "extractVersionTemplate": "{{depName}}-(?.+).apk", }, + { + // Update renovate version in GHA workflow file. + "customType": "regex", + "depNameTemplate": "ghcr.io/renovatebot/renovate", + "datasourceTemplate": "docker", + "fileMatch": [ + "^\\.github/workflows/.*\\.ya?ml$", + ], + "matchStrings": [ + "renovate-version: (?\\S+)", + "RENOVATE_IMAGE=ghcr.io/renovatebot/renovate:(?\\S+)" + ] + } ], - "customDatasources": { // Use alpine HTML mirror page as a repository. When using `html` format, renovate produces version strings from // all links present in the page. The version is extracted from that using extractVersionTemplate above.