Skip to content

Commit 4b4c6e5

Browse files
committed
Fix package release workflows version.py finding
Looking at the files in this repo, the version file is always called version.py (and it should be). Tested the find command locally. ```shell $ for f in $(git ls-files '*version*.py'); do basename $f; done | sort -u test_version.py version.py $ find util/opentelemetry-util-genai/ -type f -path "**/version.py" util/opentelemetry-util-genai/src/opentelemetry/util/genai/version.py ```
1 parent b2ed70f commit 4b4c6e5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/package-prepare-patch-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
5050
version=$(./scripts/eachdist.py version --package ${{ inputs.package }})
5151
52-
version_file=$(find $path -type f -path "*version*.py")
52+
version_file=$(find $path -type f -path "**/version.py")
5353
file_count=$(echo "$version_file" | wc -l)
5454
5555
if [ "$file_count" -ne 1 ]; then

.github/workflows/package-prepare-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
6262
version=${version_dev%.dev}
6363
64-
version_file=$(find $path -type f -path "*version*.py")
64+
version_file=$(find $path -type f -path "**/version.py")
6565
file_count=$(echo "$version_file" | wc -l)
6666
6767
if [ "$file_count" -ne 1 ]; then

0 commit comments

Comments
 (0)