Skip to content

Commit

Permalink
chore: update pdm in setup-pdm action with renovate (#446)
Browse files Browse the repository at this point in the history
  • Loading branch information
huxuan committed Mar 28, 2024
1 parent 5c2b93e commit 79b4347
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .renovaterc.json
Expand Up @@ -25,6 +25,19 @@
],
"versioningTemplate": "deb"
},
{
"customType": "regex",
"datasourceTemplate": "github-tags",
"depNameTemplate": "pdm-project/pdm",
"fileMatch": [
"^\\.github/workflows/.+\\.yml$",
"^template/.*\\.github.*/workflows/.+\\.yml(\\.jinja)?$"
],
"matchStrings": [
"uses: pdm-project/setup-pdm[\\s\\S]+?\\sversion: (?<currentValue>.*)\\n"
],
"versioningTemplate": "semver"
},
{
"customType": "regex",
"datasourceTemplate": "git-tags",
Expand Down Expand Up @@ -107,6 +120,18 @@
},
"semanticCommitScope": "copier-template"
},
{
"description": "Group pdm in Dockerfile and GitHub Action",
"groupName": "pdm",
"matchDatasources": [
"github-tags",
"pypi"
],
"matchDepNames": [
"pdm",
"pdm-project/pdm"
]
},
{
"description": "Group renovate docker tag and pre-commit-hooks tag",
"groupName": "renovate tag",
Expand Down
27 changes: 27 additions & 0 deletions template/.renovaterc.json.jinja
Expand Up @@ -30,6 +30,21 @@
],
"versioningTemplate": "deb"
},
{
"customType": "regex",
"datasourceTemplate": "github-tags",
"depNameTemplate": "pdm-project/pdm",
"fileMatch": [
"^\\.github/workflows/.+\\.yml$"
[%- if project_name == "Serious Scaffold Python" %],
"^template/.*\\.github.*/workflows/.+\\.yml(\\.jinja)?$"
[%- endif %]
],
"matchStrings": [
"uses: pdm-project/setup-pdm[\\s\\S]+?\\sversion: (?<currentValue>.*)\\n"
],
"versioningTemplate": "semver"
},
{
"customType": "regex",
"datasourceTemplate": "git-tags",
Expand Down Expand Up @@ -116,6 +131,18 @@
},
"semanticCommitScope": "copier-template"
},
{
"description": "Group pdm in Dockerfile and GitHub Action",
"groupName": "pdm",
"matchDatasources": [
"github-tags",
"pypi"
],
"matchDepNames": [
"pdm",
"pdm-project/pdm"
]
},
{
"description": "Group renovate docker tag and pre-commit-hooks tag",
"groupName": "renovate tag",
Expand Down

0 comments on commit 79b4347

Please sign in to comment.