File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5454 else
5555 echo "FORCE_RELEASE=false" >> $GITHUB_ENV
5656 fi
57- # Extract custom version: --v X.Y.Z or --version X.Y.Z
58- custom_ver=$(echo "$msg" | grep -oP '(?<=--v\s)[\d.]+|(?<=-- version\s) [\d.]+' | head -1 )
57+ # Extract custom version: --v X.Y.Z or --version X.Y.Z (portable)
58+ custom_ver=$(python -c "import re, sys; msg='$msg'; m=re.search(r'--(?:v| version)\s+( [\d.]+)', msg); print(m.group(1) if m else '')" )
5959 if [ -n "$custom_ver" ]; then
6060 echo "CUSTOM_VERSION=$custom_ver" >> $GITHUB_ENV
6161 fi
6868 else
6969 python libs/python/tools/release_meta.py --mode "${{ env.RELEASE_MODE }}" --force "${{ env.FORCE_RELEASE }}" >> $GITHUB_ENV
7070 fi
71+ shell : bash
7172 - name : Set Version
7273 run : python libs/python/tools/version.py --set "${{ env.PY_VERSION }}"
7374 shell : bash
You can’t perform that action at this time.
0 commit comments