Skip to content

Commit 8771d61

Browse files
committed
Fix version read: use grep/sed instead of Python exec
1 parent 90fcfd0 commit 8771d61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.Pipelines/pipeline-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ stages:
5656

5757
- bash: |
5858
PARAM_VER="${{ parameters.packageVersion }}"
59-
SKU_VER=$(python -c "ns={}; exec(open('msal/sku.py').read(), ns); print(ns['__version__'])")
59+
SKU_VER=$(grep '__version__' msal/sku.py | sed 's/.*"\(.*\)".*/\1/')
6060
6161
if [ -z "$PARAM_VER" ]; then
6262
echo "##vso[task.logissue type=error]packageVersion is required. Enter the version to publish (must match msal/sku.py __version__)."

0 commit comments

Comments
 (0)