Skip to content

Commit

Permalink
update template
Browse files Browse the repository at this point in the history
  • Loading branch information
huxuan committed May 23, 2024
1 parent be6a7fc commit 37a57c8
Showing 1 changed file with 22 additions and 5 deletions.
27 changes: 22 additions & 5 deletions template/.renovaterc.json.jinja
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
[% from pathjoin("includes", "version_compare.jinja") import version_higher_than -%]
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"constraints": {
"pdm": "2.15.2",
"python": "{{ default_py }}"
},
"customManagers": [
{
"customType": "regex",
Expand Down Expand Up @@ -49,8 +53,8 @@
},
{
"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$"
Expand All @@ -60,8 +64,22 @@
],
"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$"
[%- if project_name == "Serious Scaffold Python" %],
"^template/\\.renovaterc\\.json\\.jinja$"
[%- endif %]
],
"versioningTemplate": "semver"
"matchStrings": [
"\"pdm\": \"(?<currentValue>.*)\""
]
},
{
"customType": "regex",
Expand Down Expand Up @@ -209,8 +227,7 @@
"pypi"
],
"matchDepNames": [
"pdm",
"pdm-project/pdm"
"pdm"
]
},
{
Expand Down

0 comments on commit 37a57c8

Please sign in to comment.