Skip to content

Commit

Permalink
feat(cofig/presets): add regexManagers:githubActionsVersions (#19620)
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
  • Loading branch information
Turbo87 and viceice committed Jan 8, 2023
1 parent 8936ee5 commit 3d85b60
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/config/presets/internal/regex-managers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
],
},
],
},
};

0 comments on commit 3d85b60

Please sign in to comment.