Skip to content

Commit

Permalink
Update renovate config
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacome committed Aug 20, 2024
1 parent 24b8d58 commit b1fd1bd
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ repos:
- id: no-commit-to-branch
- id: requirements-txt-fixer
- id: fix-byte-order-marker
- id: detect-private-key

- repo: https://github.com/gitleaks/gitleaks
rev: v8.18.4
Expand Down
23 changes: 22 additions & 1 deletion default.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,27 @@
"\\suses: (?<depName>[\\w-]+/[\\w-]+)(?<path>/.*)?@(?<currentDigest>[a-z0-9]{40}|[a-z0-9]{64}) # (?<currentValue>v\\d+\\.\\d+\\.\\d+)"
],
"versioningTemplate": "semver"
},
{
"description": "Update _VERSION variables in shell scripts and Makefiles",
"fileMatch": [
"\\.sh$",
"(^|/)Makefile$"
],
"matchStrings": [
"# renovate: datasource=(?<datasource>[a-z-]+?) depName=(?<depName>.+?)(?: (?:packageName|lookupName)=(?<packageName>.+?))?(?: versioning=(?<versioning>[a-z-]+?))?\\s[A-Z_]+?_VERSION = (?<currentValue>.+?)\\s"
]
},
{
"description": "Update `version:` and `_VERSION:` variables in github workflows",
"fileMatch": [
"^\\.github/workflows/[^/]+\\.ya?ml$"
],
"matchStrings": [
"\\s+(?:[a-z]-)?version: (?<currentValue>.+?) # renovate: datasource=(?<datasource>.+?) depName=(?<depName>.+?)(?: (?:packageName|lookupName)=(?<packageName>.+?))?(?: versioning=(?<versioning>.+?))?\\s",
"\\s*[A-Z_]+?_VERSION: (?<currentValue>.+?) # renovate: datasource=(?<datasource>.+?) depName=(?<depName>.+?)(?: (?:packageName|lookupName)=(?<packageName>.+?))?(?: versioning=(?<versioning>.+?))?\\s"
]
}
]
],
"timezone": "America/Los_Angeles"
}

0 comments on commit b1fd1bd

Please sign in to comment.