Skip to content

Commit

Permalink
Pass down changelogPath to Update-Changelog Script (Azure#17541)
Browse files Browse the repository at this point in the history
  • Loading branch information
chidozieononiwu authored Mar 29, 2021
1 parent e1a2f6e commit 54366cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions eng/versioning/version_shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def set_dev_classifier(setup_py_location, version):
def update_change_log(setup_py_location, version, service, package, is_unreleased, replace_latest_entry_title, release_date=None):
script = os.path.join(root_dir, "eng", "common", "scripts", "Update-ChangeLog.ps1")
pkg_root = os.path.abspath(os.path.join(setup_py_location, ".."))

changelog_path = os.path.join(pkg_root, "CHANGELOG.md")
commands = [
"pwsh",
script,
Expand All @@ -146,10 +146,10 @@ def update_change_log(setup_py_location, version, service, package, is_unrelease
package,
"--Unreleased:${}".format(is_unreleased),
"--ReplaceLatestEntryTitle:${}".format(replace_latest_entry_title),
"--ChangelogPath:{}".format(changelog_path)
]
if release_date is not None:
commands.append("--ReleaseDate")
commands.append(release_date)
commands.append("--ReleaseDate:{}".format(release_date))

# Run script to update change log
run_check_call(commands, pkg_root)
Expand Down

0 comments on commit 54366cc

Please sign in to comment.