From 4b4c6e5439e629baa457326423e3f4676fbd9ce4 Mon Sep 17 00:00:00 2001 From: Aaron Abbott Date: Wed, 24 Sep 2025 20:55:19 +0000 Subject: [PATCH] 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 ``` --- .github/workflows/package-prepare-patch-release.yml | 2 +- .github/workflows/package-prepare-release.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/package-prepare-patch-release.yml b/.github/workflows/package-prepare-patch-release.yml index 9bfcd0e650..4d7dd8176b 100644 --- a/.github/workflows/package-prepare-patch-release.yml +++ b/.github/workflows/package-prepare-patch-release.yml @@ -49,7 +49,7 @@ jobs: version=$(./scripts/eachdist.py version --package ${{ inputs.package }}) - version_file=$(find $path -type f -path "*version*.py") + version_file=$(find $path -type f -path "**/version.py") file_count=$(echo "$version_file" | wc -l) if [ "$file_count" -ne 1 ]; then diff --git a/.github/workflows/package-prepare-release.yml b/.github/workflows/package-prepare-release.yml index b43edf6ecc..1849a9405c 100644 --- a/.github/workflows/package-prepare-release.yml +++ b/.github/workflows/package-prepare-release.yml @@ -61,7 +61,7 @@ jobs: version=${version_dev%.dev} - version_file=$(find $path -type f -path "*version*.py") + version_file=$(find $path -type f -path "**/version.py") file_count=$(echo "$version_file" | wc -l) if [ "$file_count" -ne 1 ]; then