Skip to content

Commit 95e936a

Browse files
committed
expose the py_ver var to the pipeline
1 parent 4437b74 commit 95e936a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

azure/cleanup-ecs-pr-proxies.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,12 @@ jobs:
6161
displayName: cache utils pre-requisites
6262

6363
- bash: |
64-
pyversion="3.13"
64+
pyversion=${{ parameters.python_version }}
6565
PATCH=$(curl -fsSL https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json \
6666
| jq -r --arg pyversion "$pyversion" '[ .[] | select(.stable == true) | .version
6767
| select(test("^" + ($pyversion|gsub("\\.";"\\.")) + "\\.\\d+$")) | split(".") | map(tonumber)] | max | join(".")')
68+
69+
echo "##vso[task.setvariable variable=PY_VER]$PATCH"
6870
echo "Resolved latest python version: $PATCH"
6971
echo "##vso[task.setvariable variable=LD_LIBRARY_PATH;]/agent/_work/_tool/Python/${PATCH}/x64/lib/"
7072
displayName: 'Query and set python tool cache path'

0 commit comments

Comments
 (0)