Skip to content

Commit

Permalink
fix path to changelog and specify release title
Browse files Browse the repository at this point in the history
  • Loading branch information
2bndy5 committed Oct 5, 2024
1 parent 08f3fe5 commit 825b468
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 14 deletions.
1 change: 1 addition & 0 deletions .github/workflows/bump_version_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,4 @@ jobs:
--notes-file ${{ steps.inc-ver.outputs.release-notes }}
--repo nRF24/${{ inputs.repo }}
--target ${{ inputs.branch }}
--title v${{ steps.inc-ver.outputs.new-version }}
22 changes: 8 additions & 14 deletions .github/workflows/increment_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,25 +105,19 @@ def get_changelog(
exe_name = (
(GIT_CLIFF_CONFIG.parent.parent.parent / exe_name).resolve().as_posix()
)
args = [
exe_name,
"--config",
str(GIT_CLIFF_CONFIG),
"--tag",
tag,
"--github-repo",
f"nRF24/{Path.cwd().name}",
]
args = [exe_name, "--github-repo", f"nRF24/{Path.cwd().name}"]
if not full:
args.append("--unreleased")
output = str(RELEASE_NOTES)
if branch == "v1.x":
args.extend(["--ignore-tags", "[v|V]?2\\..*"])
subprocess.run(
args + ["--output", output],
env={"FIRST_COMMIT": first_commit},
check=True,
)
env = {
"FIRST_COMMIT": first_commit,
"GIT_CLIFF_CONFIG": str(GIT_CLIFF_CONFIG),
"GIT_CLIFF_OUTPUT": str(output),
"GIT_CLIFF_TAG": tag,
}
subprocess.run(args, env=env, check=True)
if full:
new = changelog.read_text(encoding="utf-8")
changes = list(unified_diff(old, new))
Expand Down

0 comments on commit 825b468

Please sign in to comment.