Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for release pipeline #4925

Merged
merged 1 commit into from
Aug 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading