mirror of
https://github.com/renovatebot/renovate.git
synced 2026-10-25 23:11:31 +00:00
6f9d37a6c0
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com> Co-authored-by: Rhys Arkins <rhys@arkins.net>
This datasource can be used in combination with regex managers to keep dependencies up-to-date which are not specifically supported by Renovate.
This datasource returns a reference from a Git repository.
The packageName must be a fully qualified domain name.
To fetch the latest digest of a reference instead of the named reference, specify the reference as the currentValue and match on the currentDigest.
Usage example
The following is an example where you would maintain the HEAD digest of the master branch of a repository.
You would configure a custom manager in renovate.json for files named versions.ini:
{
"customManagers": [
{
"customType": "regex",
"fileMatch": ["^versions.ini$"],
"matchStrings": ["GOOGLE_API_VERSION=(?<currentDigest>.*?)\\n"],
"currentValueTemplate": "master",
"depNameTemplate": "googleapis",
"packageNameTemplate": "https://github.com/googleapis/googleapis",
"datasourceTemplate": "git-refs"
}
]
}