Skip to content

Commit

Permalink
perf: use copier manager (#31)
Browse files Browse the repository at this point in the history
Signed-off-by: l.feng <[email protected]>
  • Loading branch information
msclock authored Dec 3, 2024
1 parent dcd7c37 commit fe3eb6b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 80 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/renovate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
container:
env:
LOG_LEVEL: debug
RENOVATE_ALLOWED_POST_UPGRADE_COMMANDS: '["^git", "^pip", "^copier", "^find", "^apt"]'
RENOVATE_ALLOWED_POST_UPGRADE_COMMANDS: '["^git", "^find"]'
RENOVATE_BRANCH_PREFIX: renovate-github/
RENOVATE_ENABLED: ${{ vars.RENOVATE_ENABLED || true }}
RENOVATE_ENABLED_MANAGERS: '["pep621", "github-actions", "regex", "pre-commit"]'
RENOVATE_ENABLED_MANAGERS: '["pep621", "copier", "github-actions", "regex", "pre-commit"]'
RENOVATE_OPTIMIZE_FOR_DISABLED: 'true'
RENOVATE_PLATFORM: github
RENOVATE_REPOSITORIES: '["${{ github.repository }}"]'
Expand Down
40 changes: 2 additions & 38 deletions .renovaterc.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
],
"automergeType": "pr",
"automergeStrategy": "merge-commit",
"ignoreScripts": false,
"platformAutomerge": true,
"packageRules": [
{
Expand Down Expand Up @@ -97,29 +98,6 @@
"renovate/renovate",
"renovatebot/pre-commit-hooks"
]
},
{
"commitMessageTopic": "serious-scaffold",
"matchDepTypes": [
"ss-template"
],
"postUpgradeTasks": {
"commands": [
"git stash",
"apt update",
"apt install python3-pip -y",
"pip install copier==9.4.1 --break-system-packages",
"copier update --defaults --vcs-ref {{{newVersion}}}"
]
},
"semanticCommitScope": "ss-template"
},
{
"description": "Group apt packages to avoid failure when multiple packages are outdated.",
"groupName": "apt packages",
"matchDepTypes": [
"apt"
]
}
],
"customManagers": [
Expand All @@ -140,7 +118,7 @@
]
},
{
"description": " Update vcpkg.json builtin-baseline with git hash",
"description": "Update vcpkg.json builtin-baseline with git hash",
"customType": "regex",
"currentValueTemplate": "master",
"datasourceTemplate": "git-refs",
Expand All @@ -165,20 +143,6 @@
"matchStrings": [
"\"baseline\": \"(?<currentDigest>.*?)\"[^}]+?\"repository\": \"(?<depName>.*?)\""
]
},
{
"description": "Update ss template from serious-scaffold",
"customType": "regex",
"datasourceTemplate": "git-tags",
"depNameTemplate": "https://github.com/serious-scaffold/ss-pybind11.git",
"depTypeTemplate": "ss-template",
"fileMatch": [
"^\\.copier-answers\\.yml$"
],
"matchStrings": [
"_commit: (?<currentValue>.*?)\n"
],
"versioningTemplate": "semver"
}
]
}
40 changes: 2 additions & 38 deletions template/.renovaterc.json.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
],
"automergeType": "pr",
"automergeStrategy": "merge-commit",
"ignoreScripts": false,
"platformAutomerge": true,
"packageRules": [
{
Expand Down Expand Up @@ -109,29 +110,6 @@
[%- endif %]
"renovatebot/pre-commit-hooks"
]
},
{
"commitMessageTopic": "serious-scaffold",
"matchDepTypes": [
"ss-template"
],
"postUpgradeTasks": {
"commands": [
"git stash",
"apt update",
"apt install python3-pip -y",
"pip install copier==9.4.1 --break-system-packages",
"copier update --defaults --vcs-ref {{ '{{{newVersion}}}' }}"
]
},
"semanticCommitScope": "ss-template"
},
{
"description": "Group apt packages to avoid failure when multiple packages are outdated.",
"groupName": "apt packages",
"matchDepTypes": [
"apt"
]
}
],
"customManagers": [
Expand All @@ -154,7 +132,7 @@
]
},
{
"description": " Update vcpkg.json builtin-baseline with git hash",
"description": "Update vcpkg.json builtin-baseline with git hash",
"customType": "regex",
"currentValueTemplate": "master",
"datasourceTemplate": "git-refs",
Expand All @@ -179,20 +157,6 @@
"matchStrings": [
"\"baseline\": \"(?<currentDigest>.*?)\"[^}]+?\"repository\": \"(?<depName>.*?)\""
]
},
{
"description": "Update ss template from serious-scaffold",
"customType": "regex",
"datasourceTemplate": "git-tags",
"depNameTemplate": "https://github.com/serious-scaffold/ss-pybind11.git",
"depTypeTemplate": "ss-template",
"fileMatch": [
"^\\.copier-answers\\.yml$"
],
"matchStrings": [
"_commit: (?<currentValue>.*?)\n"
],
"versioningTemplate": "semver"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
container:
env:
LOG_LEVEL: debug
RENOVATE_ALLOWED_POST_UPGRADE_COMMANDS: '["^git", "^pip", "^copier", "^find", "^apt"]'
RENOVATE_ALLOWED_POST_UPGRADE_COMMANDS: '["^git", "^find"]'
RENOVATE_BRANCH_PREFIX: renovate-github/
RENOVATE_ENABLED: {{ '${{ vars.RENOVATE_ENABLED || true }}' }}
RENOVATE_ENABLED_MANAGERS: '["pep621", "github-actions", "regex", "pre-commit"]'
RENOVATE_ENABLED_MANAGERS: '["pep621", "copier", "github-actions", "regex", "pre-commit"]'
RENOVATE_OPTIMIZE_FOR_DISABLED: 'true'
RENOVATE_PLATFORM: github
RENOVATE_REPOSITORIES: '["{{ '${{ github.repository }}' }}"]'
Expand Down

0 comments on commit fe3eb6b

Please sign in to comment.