From d253e74bb4f80eedb0590dadc5a3604396707b65 Mon Sep 17 00:00:00 2001 From: "l.feng" <43399351+msclock@users.noreply.github.com> Date: Mon, 2 Dec 2024 12:25:24 +0800 Subject: [PATCH] fix(no-release): failed renovate post upgrade task Signed-off-by: l.feng <43399351+msclock@users.noreply.github.com> --- .github/workflows/renovate.yml | 2 +- .renovaterc.json | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/renovate.yml b/.github/workflows/renovate.yml index 2751396..4216658 100644 --- a/.github/workflows/renovate.yml +++ b/.github/workflows/renovate.yml @@ -11,7 +11,7 @@ jobs: container: env: LOG_LEVEL: debug - RENOVATE_ALLOWED_POST_UPGRADE_COMMANDS: '["^git", "^pip", "^copier", "^find", "^apt"]' + RENOVATE_ALLOWED_POST_UPGRADE_COMMANDS: '["^git", "^pipx", "^copier", "^find", "^apt"]' RENOVATE_BRANCH_PREFIX: renovate-github/ RENOVATE_ENABLED: ${{ vars.RENOVATE_ENABLED || true }} RENOVATE_ENABLED_MANAGERS: '["pep621", "github-actions", "regex", "pre-commit"]' diff --git a/.renovaterc.json b/.renovaterc.json index 15b1e2a..db0d365 100644 --- a/.renovaterc.json +++ b/.renovaterc.json @@ -42,10 +42,9 @@ "postUpgradeTasks": { "commands": [ "apt update", - "apt install python3-pip -y", + "apt install pipx -y", "git stash", - "pip install copier==9.4.1", - "copier update --defaults --vcs-ref {{{newVersion}}}" + "pipx run copier==9.4.1 copier update --defaults --vcs-ref {{{newVersion}}}" ] }, "semanticCommitScope": "ss-template"