From 8da632eaa53f3dd97b6a1376973948d1ade967a9 Mon Sep 17 00:00:00 2001 From: "Martin K. Scherer" Date: Mon, 18 Nov 2024 00:58:06 +0100 Subject: [PATCH] variable access pattern --- .azure/scripts/python.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.azure/scripts/python.yml b/.azure/scripts/python.yml index 14685a490..4f939bad1 100644 --- a/.azure/scripts/python.yml +++ b/.azure/scripts/python.yml @@ -10,11 +10,12 @@ parameters: steps: - task: UsePythonVersion@0 inputs: - architecture: $(architecture) - versionSpec: $(version) + architecture: ${{ parameters.architecture }} + versionSpec: ${{ parameters.version }} disableDownloadFromRegistry: false # boolean. Disable downloading releases from the GitHub registry. Default: false. allowUnstable: true # boolean. Optional. Use when disableDownloadFromRegistry = false. Allow downloading unstable releases. Default: false. - githubToken: $(githubToken) # global (secret) variable to allow API access to Github (for not hitting a rate limit while downloading). + # todo: do we need this kind of variable access pattern? + githubToken: ${{ githubToken }} # global (secret) variable to allow API access to Github (for not hitting a rate limit while downloading). - bash: | [[ $(python --version) -eq '$version' ]] displayName: check version \ No newline at end of file