From eab70e6e035ece8715ca32a5e8f3b6a62c3f6044 Mon Sep 17 00:00:00 2001 From: Xuan Hu Date: Thu, 28 Mar 2024 18:16:48 +0800 Subject: [PATCH 1/2] chore: update pdm version in setup-pdm action with renovate --- .renovaterc.json | 13 +++++++++++++ template/.renovaterc.json.jinja | 15 +++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/.renovaterc.json b/.renovaterc.json index 862e00ab..340c0a2e 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", diff --git a/template/.renovaterc.json.jinja b/template/.renovaterc.json.jinja index a20c39c4..c313da1b 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", From a1ba2130a1a5e77eb64e8835c526c17ddc04000b Mon Sep 17 00:00:00 2001 From: Xuan Hu Date: Thu, 28 Mar 2024 18:38:10 +0800 Subject: [PATCH 2/2] group --- .renovaterc.json | 12 ++++++++++++ template/.renovaterc.json.jinja | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/.renovaterc.json b/.renovaterc.json index 340c0a2e..cdf15c36 100644 --- a/.renovaterc.json +++ b/.renovaterc.json @@ -120,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 c313da1b..bf4a0671 100644 --- a/template/.renovaterc.json.jinja +++ b/template/.renovaterc.json.jinja @@ -131,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",