From 09aaad77b9cf6ac12ed1cd2da8eef63668cb822a Mon Sep 17 00:00:00 2001 From: Xuan Hu Date: Mon, 2 Dec 2024 11:46:13 +0000 Subject: [PATCH] fix: pdm update bug in renovate --- .github/workflows/renovate.yml | 8 ++++---- .gitlab/workflows/renovate.yml | 4 ++-- .../workflows/renovate.yml.jinja | 8 ++++---- .../workflows/renovate.yml | 4 ++-- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/renovate.yml b/.github/workflows/renovate.yml index ba425181..62e00fbe 100644 --- a/.github/workflows/renovate.yml +++ b/.github/workflows/renovate.yml @@ -4,16 +4,16 @@ jobs: container: env: LOG_LEVEL: debug - RENOVATE_ALLOWED_POST_UPGRADE_COMMANDS: '["^git", "^pip", "^copier", "^find"]' + RENOVATE_ALLOWED_POST_UPGRADE_COMMANDS: '["^git", "^pdm", "^pip", "^copier", "^find"]' RENOVATE_BRANCH_PREFIX: renovate-github/ RENOVATE_ENABLED: ${{ vars.RENOVATE_ENABLED || true }} RENOVATE_ENABLED_MANAGERS: '["pep621", "github-actions", "gitlabci", "regex", "pre-commit"]' - RENOVATE_OPTIMIZE_FOR_DISABLED: 'true' + RENOVATE_OPTIMIZE_FOR_DISABLED: "true" RENOVATE_PLATFORM: github RENOVATE_REPOSITORIES: '["${{ github.repository }}"]' RENOVATE_REPOSITORY_CACHE: enabled image: ghcr.io/renovatebot/renovate:39.42.4@sha256:c5d718e312cdacc0746e37f13c215ff498be28c51e50efd24c070ae29f5b636a - options: '--user root' + options: "--user root" runs-on: ubuntu-24.04 steps: - run: env | sort @@ -49,5 +49,5 @@ jobs: on: schedule: # * is a special character in YAML so you have to quote this string - - cron: '*/15 0-3 * * 1' + - cron: "*/15 0-3 * * 1" workflow_dispatch: null diff --git a/.gitlab/workflows/renovate.yml b/.gitlab/workflows/renovate.yml index 09ea71ec..6e854c35 100644 --- a/.gitlab/workflows/renovate.yml +++ b/.gitlab/workflows/renovate.yml @@ -11,12 +11,12 @@ renovate: variables: GIT_STRATEGY: none LOG_LEVEL: debug - RENOVATE_ALLOWED_POST_UPGRADE_COMMANDS: '["^git", "^pip", "^copier", "^find"]' + RENOVATE_ALLOWED_POST_UPGRADE_COMMANDS: '["^git", "^pdm", "^pip", "^copier", "^find"]' RENOVATE_BASE_DIR: $CI_PROJECT_DIR/renovate RENOVATE_BRANCH_PREFIX: renovate-gitlab/ RENOVATE_ENABLED_MANAGERS: '["pep621", "gitlabci", "regex", "pre-commit"]' RENOVATE_ENDPOINT: $CI_API_V4_URL - RENOVATE_OPTIMIZE_FOR_DISABLED: 'true' + RENOVATE_OPTIMIZE_FOR_DISABLED: "true" RENOVATE_PLATFORM: gitlab RENOVATE_REPOSITORIES: '["$CI_PROJECT_PATH"]' RENOVATE_REPOSITORY_CACHE: enabled diff --git a/template/[% if repo_platform == 'github' %].github[% endif %]/workflows/renovate.yml.jinja b/template/[% if repo_platform == 'github' %].github[% endif %]/workflows/renovate.yml.jinja index fbc4a690..d5815f4f 100644 --- a/template/[% if repo_platform == 'github' %].github[% endif %]/workflows/renovate.yml.jinja +++ b/template/[% if repo_platform == 'github' %].github[% endif %]/workflows/renovate.yml.jinja @@ -4,7 +4,7 @@ jobs: container: env: LOG_LEVEL: debug - RENOVATE_ALLOWED_POST_UPGRADE_COMMANDS: '["^git", "^pip", "^copier", "^find"]' + RENOVATE_ALLOWED_POST_UPGRADE_COMMANDS: '["^git", "^pdm", "^pip", "^copier", "^find"]' RENOVATE_BRANCH_PREFIX: renovate-github/ RENOVATE_ENABLED: {{ '${{ vars.RENOVATE_ENABLED || true }}' }} [% if project_name == "Serious Scaffold Python" %] @@ -12,12 +12,12 @@ jobs: [% else %] RENOVATE_ENABLED_MANAGERS: '["pep621", "github-actions", "regex", "pre-commit"]' [% endif %] - RENOVATE_OPTIMIZE_FOR_DISABLED: 'true' + RENOVATE_OPTIMIZE_FOR_DISABLED: "true" RENOVATE_PLATFORM: github RENOVATE_REPOSITORIES: '["{{ '${{ github.repository }}' }}"]' RENOVATE_REPOSITORY_CACHE: enabled image: ghcr.io/renovatebot/renovate:39.42.4@sha256:c5d718e312cdacc0746e37f13c215ff498be28c51e50efd24c070ae29f5b636a - options: '--user root' + options: "--user root" runs-on: ubuntu-24.04 steps: - run: env | sort @@ -53,5 +53,5 @@ jobs: on: schedule: # * is a special character in YAML so you have to quote this string - - cron: '*/15 0-3 * * 1' + - cron: "*/15 0-3 * * 1" workflow_dispatch: null diff --git a/template/[% if repo_platform == 'gitlab' or repo_platform == 'gitlab-self-managed' %].gitlab[% endif %]/workflows/renovate.yml b/template/[% if repo_platform == 'gitlab' or repo_platform == 'gitlab-self-managed' %].gitlab[% endif %]/workflows/renovate.yml index 09ea71ec..6e854c35 100644 --- a/template/[% if repo_platform == 'gitlab' or repo_platform == 'gitlab-self-managed' %].gitlab[% endif %]/workflows/renovate.yml +++ b/template/[% if repo_platform == 'gitlab' or repo_platform == 'gitlab-self-managed' %].gitlab[% endif %]/workflows/renovate.yml @@ -11,12 +11,12 @@ renovate: variables: GIT_STRATEGY: none LOG_LEVEL: debug - RENOVATE_ALLOWED_POST_UPGRADE_COMMANDS: '["^git", "^pip", "^copier", "^find"]' + RENOVATE_ALLOWED_POST_UPGRADE_COMMANDS: '["^git", "^pdm", "^pip", "^copier", "^find"]' RENOVATE_BASE_DIR: $CI_PROJECT_DIR/renovate RENOVATE_BRANCH_PREFIX: renovate-gitlab/ RENOVATE_ENABLED_MANAGERS: '["pep621", "gitlabci", "regex", "pre-commit"]' RENOVATE_ENDPOINT: $CI_API_V4_URL - RENOVATE_OPTIMIZE_FOR_DISABLED: 'true' + RENOVATE_OPTIMIZE_FOR_DISABLED: "true" RENOVATE_PLATFORM: gitlab RENOVATE_REPOSITORIES: '["$CI_PROJECT_PATH"]' RENOVATE_REPOSITORY_CACHE: enabled