Skip to content

Commit de246e6

Browse files
committed
invoke git-cliff exe directly
1 parent 1ddd8ab commit de246e6

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/bump_version_release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
uses: cargo-bins/cargo-binstall@main
6060

6161
- name: Install git-cliff
62-
run: cargo binstall -y git-cliff
62+
run: cargo binstall -y git-cliff --install-path org-repo
6363

6464
- name: increment version
6565
working-directory: ${{ inputs.repo }}

.github/workflows/increment_version.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,11 @@ def get_changelog(
9898
if full and changelog.exists():
9999
old = changelog.read_text(encoding="utf-8")
100100
output = changelog
101+
exe_name = "git-cliff"
102+
if environ.get("CI", "false") == "true":
103+
exe_name = (GIT_CLIFF_CONFIG.parent.parent / exe_name).resolve().as_posix()
101104
args = [
102-
"git-cliff",
105+
exe_name,
103106
"--config",
104107
str(GIT_CLIFF_CONFIG),
105108
"--tag",

0 commit comments

Comments
 (0)