diff --git a/.renovaterc.json b/.renovaterc.json index 862e00ab..cdf15c36 100644 --- a/.renovaterc.json +++ b/.renovaterc.json @@ -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: (?.*)\\n" + ], + "versioningTemplate": "semver" + }, { "customType": "regex", "datasourceTemplate": "git-tags", @@ -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", diff --git a/template/.renovaterc.json.jinja b/template/.renovaterc.json.jinja index a20c39c4..bf4a0671 100644 --- a/template/.renovaterc.json.jinja +++ b/template/.renovaterc.json.jinja @@ -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: (?.*)\\n" + ], + "versioningTemplate": "semver" + }, { "customType": "regex", "datasourceTemplate": "git-tags", @@ -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",