Skip to content

Commit f9728a3

Browse files
Fix for release pipeline (#4925)
Co-authored-by: v-levockina <undefined>
1 parent 1134d4e commit f9728a3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

release/createAdoPrs.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const INTEGRATION_DIR = path.join(__dirname, '..', '_layout', 'integrations');
99
const GIT = 'git';
1010

1111
const opt = require('node-getopt').create([
12-
['', 'dryrun', 'Dry run only, do not actually commit new release'],
12+
['', 'dryrun=ARG', 'Dry run only, do not actually commit new release'],
1313
['h', 'help', 'Display this help'],
1414
])
1515
.setHelp(
@@ -170,7 +170,10 @@ async function main() {
170170
util.verifyMinimumGitVersion();
171171
createIntegrationFiles(agentVersion);
172172

173-
const dryrun = (opt.options.dryrun.toString().toLowerCase() === "true");
173+
let dryrun = false;
174+
if (opt.options.dryrun) {
175+
dryrun = opt.options.dryrun.toString().toLowerCase() === "true"
176+
}
174177

175178
console.log(`Dry run: ${dryrun}`);
176179

0 commit comments

Comments
 (0)