From f9728a300c3f4548301292243f3967d412521ec9 Mon Sep 17 00:00:00 2001 From: Aleksandr Levochkin <107044793+aleksandrlevochkin@users.noreply.github.com> Date: Mon, 5 Aug 2024 15:02:17 +0200 Subject: [PATCH] Fix for release pipeline (#4925) Co-authored-by: v-levockina --- release/createAdoPrs.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/release/createAdoPrs.js b/release/createAdoPrs.js index 492d057a59..d6ed769ad4 100644 --- a/release/createAdoPrs.js +++ b/release/createAdoPrs.js @@ -9,7 +9,7 @@ const INTEGRATION_DIR = path.join(__dirname, '..', '_layout', 'integrations'); const GIT = 'git'; const opt = require('node-getopt').create([ - ['', 'dryrun', 'Dry run only, do not actually commit new release'], + ['', 'dryrun=ARG', 'Dry run only, do not actually commit new release'], ['h', 'help', 'Display this help'], ]) .setHelp( @@ -170,7 +170,10 @@ async function main() { util.verifyMinimumGitVersion(); createIntegrationFiles(agentVersion); - const dryrun = (opt.options.dryrun.toString().toLowerCase() === "true"); + let dryrun = false; + if (opt.options.dryrun) { + dryrun = opt.options.dryrun.toString().toLowerCase() === "true" + } console.log(`Dry run: ${dryrun}`);