Skip to content

Commit

Permalink
Fix for release pipeline (#4925)
Browse files Browse the repository at this point in the history
Co-authored-by: v-levockina <undefined>
  • Loading branch information
aleksandrlevochkin committed Aug 5, 2024
1 parent 1134d4e commit f9728a3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions release/createAdoPrs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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}`);

Expand Down

0 comments on commit f9728a3

Please sign in to comment.