Skip to content

Commit

Permalink
Fix python version check
Browse files Browse the repository at this point in the history
  • Loading branch information
plengauer authored Dec 8, 2024
1 parent d5f51da commit 2907d0a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
- uses: actions/checkout@v4
- run: |
min_version_otel="$(curl https://pypi.org/project/opentelemetry-api/ | grep -F -- 'Python :: ' | cut -d ':' -f 3 | tr -d ' ' | grep -F -- 3. | cut -d . -f 2 | sort -n | head -n 1)"
min_version_otel="${min_version_otel:-8}"
min_version_shell="$(cat src/DEBIAN/control | grep '^Pre-Depends:' | tr ',' '\n' | grep -F -- 'python3 (>=' | cut -d '(' -f 2- | cut -d ')' -f 1 | cut -d ' ' -f 2 | cut -d . -f 2)"
[ "$min_version_shell" -ge "$min_version_otel" ]
Expand Down

0 comments on commit 2907d0a

Please sign in to comment.