diff --git a/lib/config/presets/internal/regex-managers.ts b/lib/config/presets/internal/regex-managers.ts index 68d52c82a9bb4fe10ea96d379753a40701dd557f..55494a3f95a9f3416a5ea7db684222b2b4821837 100644 --- a/lib/config/presets/internal/regex-managers.ts +++ b/lib/config/presets/internal/regex-managers.ts @@ -14,4 +14,16 @@ export const presets: Record<string, Preset> = { }, ], }, + githubActionsVersions: { + description: + 'Update `_VERSION` environment variables in GitHub Action files.', + regexManagers: [ + { + fileMatch: ['^.github/workflows/[^/]+\\.ya?ml$'], + matchStrings: [ + '# renovate: datasource=(?<datasource>[a-z-]+?) depName=(?<depName>[^\\s]+?)(?: (?:lookupName|packageName)=(?<packageName>[^\\s]+?))?(?: versioning=(?<versioning>[a-z-0-9]+?))?\\s+[A-Za-z0-9_]+?_VERSION\\s*:\\s*["\']?(?<currentValue>.+?)["\']?\\s', + ], + }, + ], + }, };