Skip to content

Commit

Permalink
Support array items in githubActionsVersions
Browse files Browse the repository at this point in the history
  • Loading branch information
jvansanten committed Jan 20, 2025
1 parent 9cd1fa0 commit c8a595e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
18 changes: 17 additions & 1 deletion regexManagers/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
# gitHubActionsVersions

like regexManagers:githubActionsVersions, but also matches keys of the form `default:`, `foo-version:` and `version:` in addition to `FOO_VERSION:`
like regexManagers:githubActionsVersions, but matches any (alphanumeric) key or
array item. The datasource and depName tags are required; packageName,
versioning, and extractVersion are optional. Examples:

```
# renovate: datasource=python-version depName=python versioning=python
python-version: "3.13"
```

```
strategy:
matrix:
python-version:
- "3.10"
# renovate: datasource=python-version depName=python versioning=python
- "3.13"
```

# dockerfileVersions

Expand Down
2 changes: 1 addition & 1 deletion regexManagers/githubActionsVersions.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"(^|/)action\\.ya?ml$"
],
"matchStrings": [
"# renovate: datasource=(?<datasource>[a-z-.]+?) depName=(?<depName>[^\\s]+?)(?: (?:lookupName|packageName)=(?<packageName>[^\\s]+?))?(?: versioning=(?<versioning>[^\\s]+?))?(?: extractVersion=(?<extractVersion>[^\\s]+?))?\\s+(?:default|[A-Za-z0-9_]*-?version)\\s*:\\s*[\"']?(?<currentValue>.+?)[\"']?\\s"
"# renovate: datasource=(?<datasource>[a-z-.]+?) depName=(?<depName>[^\\s]+)(?: (?:lookupName|packageName)=(?<packageName>[^\\s]+))?(?: versioning=(?<versioning>[^\\s]+))?(?: extractVersion=(?<extractVersion>[^\\s]+))?\\s+(?:[A-Za-z0-9_-]+\\s*:|-)\\s*[\"']?(?<currentValue>[^\\s\"']+)[\"']?"
]
}
]
Expand Down

0 comments on commit c8a595e

Please sign in to comment.