From 49e468b5faaebc23e122fee180500c71a123bb6a Mon Sep 17 00:00:00 2001 From: JJGadgets Date: Mon, 16 Dec 2024 14:11:06 +0800 Subject: [PATCH] fix(renovate): migrate to new config --- .github/workflows/renovate.yaml | 12 ++++++------ .renovaterc.json5 | 3 ++- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/renovate.yaml b/.github/workflows/renovate.yaml index 497e2953..1b339183 100644 --- a/.github/workflows/renovate.yaml +++ b/.github/workflows/renovate.yaml @@ -50,12 +50,12 @@ env: # central Renovate for whole user/org RENOVATE_AUTODISCOVER: true RENOVATE_AUTODISCOVER_FILTER: "${{ github.repository_owner }}/*" # this is to prevent forks from running Renovate against upstream repo - # RENOVATE_INHERIT_CONFIG: true - # RENOVATE_INHERIT_CONFIG_REPO_NAME: "${{ github.repository }}" - # RENOVATE_INHERIT_CONFIG_FILE_NAME: ".renovaterc.json5" - # # run on all repos without needing config - # RENOVATE_ONBOARDING: false - # RENOVATE_REQUIRE_CONFIG: "optional" + RENOVATE_INHERIT_CONFIG: true + RENOVATE_INHERIT_CONFIG_REPO_NAME: "${{ github.repository }}" + RENOVATE_INHERIT_CONFIG_FILE_NAME: ".renovaterc.json5" + # run on all repos without needing config + RENOVATE_ONBOARDING: false + RENOVATE_REQUIRE_CONFIG: "optional" # git user RENOVATE_USERNAME: "${{ secrets.BOT_USERNAME }}[bot]" RENOVATE_GIT_AUTHOR: "${{ secrets.BOT_USERNAME }} <${{ secrets.BOT_API_ID }}+${{ secrets.BOT_USERNAME }}[bot]@users.noreply.github.com>" # get $BOT_API_ID from `curl -s 'https://api.github.com/users/$(BOT_USERNAME)%5Bbot%5D' | yq .id` diff --git a/.renovaterc.json5 b/.renovaterc.json5 index 02316ea6..b2d6ec34 100644 --- a/.renovaterc.json5 +++ b/.renovaterc.json5 @@ -39,9 +39,10 @@ "kustomize": { "fileMatch": ["^kube/.+\\.ya?ml$"], }, - "regexManagers": [ + "customManagers": [ { "description": "Process various other dependencies", + "customType": "regex", // "fileMatch": ["^kube/.+\\.ya?ml$", "vyos/], // process regex from everywhere "fileMatch": [".*"], // process regex from everywhere "matchStrings": [