Skip to content

Commit

Permalink
feat(github-actions): synchronize regexManager:githubActionsVersions …
Browse files Browse the repository at this point in the history
…and github-actions fileMatch (#26414)

Co-authored-by: Sebastian Poxhofer <[email protected]>
Co-authored-by: GregoryDosh <[email protected]>
Co-authored-by: Rhys Arkins <[email protected]>
  • Loading branch information
4 people authored Jan 10, 2024
1 parent 2191dfa commit 2cbb04d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion lib/config/presets/internal/regex-managers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
],
Expand Down
2 changes: 1 addition & 1 deletion lib/modules/manager/github-actions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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$',
],
};
Expand Down

0 comments on commit 2cbb04d

Please sign in to comment.