Skip to content

Commit 5fe48ff

Browse files
committed
parameterize python version
1 parent dc16d3c commit 5fe48ff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

azure/common/apigee-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ jobs:
150150

151151
- bash: |
152152
PATCH=$(curl -s https://api.github.com/repos/actions/python-versions/releases \
153-
| jq -r '[.[] | .tag_name | select(startswith("3.13"))] | .[]' \
153+
| jq -r '[.[] | .tag_name | select(startswith("'"${{ parameters.python_version }}"'"))] | .[]' \
154154
| sort -V | tail -n 1 | cut -d- -f1)
155155
echo "Resolved latest python version: $PATCH"
156156
echo "##vso[task.setvariable variable=LD_LIBRARY_PATH;]/agent/_work/_tool/Python/${PATCH}/x64/lib/"

0 commit comments

Comments
 (0)