From 989c5c38b1b0c876f629361f2cebfb1f2b0f69b8 Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Mon, 27 Jun 2022 11:45:20 +0200 Subject: [PATCH] fix: pass config to post-upgrade config templating (#16267) --- .../repository/update/branch/execute-post-upgrade-commands.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/workers/repository/update/branch/execute-post-upgrade-commands.ts b/lib/workers/repository/update/branch/execute-post-upgrade-commands.ts index d7d7e0e4dd..fb2c6bcda0 100644 --- a/lib/workers/repository/update/branch/execute-post-upgrade-commands.ts +++ b/lib/workers/repository/update/branch/execute-post-upgrade-commands.ts @@ -1,6 +1,7 @@ // TODO #7154 import is from '@sindresorhus/is'; import minimatch from 'minimatch'; +import { mergeChildConfig } from '../../../../config'; import { GlobalConfig } from '../../../../config/global'; import { addMeta, logger } from '../../../../logger'; import type { ArtifactError } from '../../../../modules/manager/types'; @@ -66,7 +67,7 @@ export async function postUpgradeCommandsExecutor( ) { try { const compiledCmd = allowPostUpgradeCommandTemplating - ? compile(cmd, upgrade) + ? compile(cmd, mergeChildConfig(config, upgrade)) : cmd; logger.debug({ cmd: compiledCmd }, 'Executing post-upgrade task'); -- GitLab