diff --git a/lib/config/presets/internal/regex-managers.ts b/lib/config/presets/internal/regex-managers.ts index bdc147c1122ee73df3ef0235e0fd83df4cbe4941..857b0e28db8c36c38e3e85105d9568b10b660c9d 100644 --- a/lib/config/presets/internal/regex-managers.ts +++ b/lib/config/presets/internal/regex-managers.ts @@ -22,7 +22,10 @@ export const presets: Record<string, Preset> = { customManagers: [ { customType: 'regex', - fileMatch: ['^.github/(?:workflows|actions)/.+\\.ya?ml$'], + fileMatch: [ + '(^|/)(workflow-templates|\\.(?:github|gitea|forgejo)/(?:workflows|actions))/.+\\.ya?ml$', + '(^|/)action\\.ya?ml$', + ], matchStrings: [ '# renovate: datasource=(?<datasource>[a-z-.]+?) depName=(?<depName>[^\\s]+?)(?: (?:lookupName|packageName)=(?<packageName>[^\\s]+?))?(?: versioning=(?<versioning>[^\\s]+?))?(?: extractVersion=(?<extractVersion>[^\\s]+?))?\\s+[A-Za-z0-9_]+?_VERSION\\s*:\\s*["\']?(?<currentValue>.+?)["\']?\\s', ], diff --git a/lib/modules/manager/github-actions/index.ts b/lib/modules/manager/github-actions/index.ts index 2da8530de6f75ee01f9ba2da5ef5b18c89cd9a6d..305543bcf6c05dbc053cf0f46f616b7b77625aa9 100644 --- a/lib/modules/manager/github-actions/index.ts +++ b/lib/modules/manager/github-actions/index.ts @@ -5,7 +5,7 @@ export { extractPackageFile } from './extract'; export const defaultConfig = { fileMatch: [ - '(^|/)(workflow-templates|\\.(?:github|gitea|forgejo)/workflows)/[^/]+\\.ya?ml$', + '(^|/)(workflow-templates|\\.(?:github|gitea|forgejo)/(?:workflows|actions))/.+\\.ya?ml$', '(^|/)action\\.ya?ml$', ], };