Skip to content

Commit

Permalink
fix: renovate post upgrade task needs pip (#26)
Browse files Browse the repository at this point in the history
* Update to ss-template
---------

Signed-off-by: l.feng <[email protected]>
  • Loading branch information
msclock authored Dec 2, 2024
1 parent 980cee1 commit 49c093a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/renovate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
container:
env:
LOG_LEVEL: debug
RENOVATE_ALLOWED_POST_UPGRADE_COMMANDS: '["^git", "^pip", "^copier", "^find"]'
RENOVATE_ALLOWED_POST_UPGRADE_COMMANDS: '["^git", "^pip", "^copier", "^find", "^apt"]'
RENOVATE_BRANCH_PREFIX: renovate-github/
RENOVATE_ENABLED: ${{ vars.RENOVATE_ENABLED || true }}
RENOVATE_ENABLED_MANAGERS: '["pep621", "github-actions", "regex", "pre-commit"]'
Expand Down
7 changes: 4 additions & 3 deletions .renovaterc.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,16 +101,17 @@
{
"commitMessageTopic": "serious-scaffold",
"matchDepTypes": [
"copier-template"
"ss-template"
],
"postUpgradeTasks": {
"commands": [
"apt update && apt install python3-pip -y",
"git stash",
"pip install copier==9.4.1",
"copier update --defaults --vcs-ref {{{newVersion}}}"
]
},
"semanticCommitScope": "copier-template"
"semanticCommitScope": "ss-template"
},
{
"description": "Group apt packages to avoid failure when multiple packages are outdated.",
Expand Down Expand Up @@ -169,7 +170,7 @@
"customType": "regex",
"datasourceTemplate": "git-tags",
"depNameTemplate": "https://github.com/serious-scaffold/ss-pybind11.git",
"depTypeTemplate": "copier-template",
"depTypeTemplate": "ss-template",
"fileMatch": [
"^\\.copier-answers\\.yml$"
],
Expand Down
7 changes: 4 additions & 3 deletions template/.renovaterc.json.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -113,16 +113,17 @@
{
"commitMessageTopic": "serious-scaffold",
"matchDepTypes": [
"copier-template"
"ss-template"
],
"postUpgradeTasks": {
"commands": [
"apt update && apt install python3-pip -y",
"git stash",
"pip install copier==9.4.1",
"copier update --defaults --vcs-ref {{ '{{{newVersion}}}' }}"
]
},
"semanticCommitScope": "copier-template"
"semanticCommitScope": "ss-template"
},
{
"description": "Group apt packages to avoid failure when multiple packages are outdated.",
Expand Down Expand Up @@ -183,7 +184,7 @@
"customType": "regex",
"datasourceTemplate": "git-tags",
"depNameTemplate": "https://github.com/serious-scaffold/ss-pybind11.git",
"depTypeTemplate": "copier-template",
"depTypeTemplate": "ss-template",
"fileMatch": [
"^\\.copier-answers\\.yml$"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
container:
env:
LOG_LEVEL: debug
RENOVATE_ALLOWED_POST_UPGRADE_COMMANDS: '["^git", "^pip", "^copier", "^find"]'
RENOVATE_ALLOWED_POST_UPGRADE_COMMANDS: '["^git", "^pip", "^copier", "^find", "^apt"]'
RENOVATE_BRANCH_PREFIX: renovate-github/
RENOVATE_ENABLED: {{ '${{ vars.RENOVATE_ENABLED || true }}' }}
RENOVATE_ENABLED_MANAGERS: '["pep621", "github-actions", "regex", "pre-commit"]'
Expand Down

0 comments on commit 49c093a

Please sign in to comment.