Skip to content

Commit 33970f8

Browse files
committed
Update version format in generate_version_number.py to use + instead of .post and fix checkout issue in release pipeline
1 parent 9263c10 commit 33970f8

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/release-pipeline.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,12 @@ jobs:
110110
- name: Checkout code
111111
uses: actions/checkout@v4
112112
with:
113+
fetch-tags: true
113114
fetch-depth: 0
114115

116+
- name: Mark repository as safe (Fix for https://github.com/actions/checkout/issues/1048)
117+
run: git config --global --add safe.directory $GITHUB_WORKSPACE
118+
115119
- name: Set build ID
116120
run: |
117121
set -e

ci/generate_version_number.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def get_full_version() -> str:
127127
print(f"Commit count in master since last release: {count_in_master}", file=sys.stderr)
128128
short_hash = run_command(["git", "rev-parse", "--short", "HEAD"])
129129
# For feature branches, use the next patch number + commit hash
130-
full_version = f"{version_major_minor}.{int(count_in_master) + 1}.post{short_hash}"
130+
full_version = f"{version_major_minor}.{int(count_in_master) + 1}+{short_hash}"
131131

132132
return full_version
133133

0 commit comments

Comments
 (0)