Skip to content

Commit

Permalink
add renovate constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
huxuan committed May 23, 2024
1 parent 41d4559 commit be6a7fc
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions .renovaterc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"constraints": {
"pdm": "2.15.2",
"python": "3.12"
},
"customManagers": [
{
"customType": "regex",
Expand Down Expand Up @@ -44,17 +48,29 @@
},
{
"customType": "regex",
"datasourceTemplate": "github-tags",
"depNameTemplate": "pdm-project/pdm",
"datasourceTemplate": "pypi",
"depNameTemplate": "pdm",
"description": "Match pdm version specified in setup-pdm GitHub Action",
"fileMatch": [
"^\\.github/workflows/.+\\.yml$",
"^template/.*\\.github.*/workflows/.+\\.yml(\\.jinja)?$"
],
"matchStrings": [
"uses: pdm-project/setup-pdm[\\s\\S]+?\\sversion: (?<currentValue>.*)\n"
]
},
{
"customType": "regex",
"datasourceTemplate": "pypi",
"depNameTemplate": "pdm",
"description": "Match pdm version specified in renovate constraints",
"fileMatch": [
"^\\.renovaterc\\.json$",
"^template/\\.renovaterc\\.json\\.jinja$"
],
"versioningTemplate": "semver"
"matchStrings": [
"\"pdm\": \"(?<currentValue>.*)\""
]
},
{
"customType": "regex",
Expand Down Expand Up @@ -196,8 +212,7 @@
"pypi"
],
"matchDepNames": [
"pdm",
"pdm-project/pdm"
"pdm"
]
},
{
Expand Down

0 comments on commit be6a7fc

Please sign in to comment.