@@ -109,19 +109,6 @@ jobs:
109109 echo "Python $version is installed"
110110 done
111111 echo "All Python versions verified successfully!"
112- - name : Update version for release
113- if : startsWith(github.ref, 'refs/tags/v')
114- run : |
115- export PATH="$HOME/.pyenv/bin:$PATH"
116- eval "$(pyenv init -)"
117- pyenv shell 3.9
118-
119- # Install bump-my-version
120- python -m pip install bump-my-version
121- TAG_NAME=${GITHUB_REF#refs/tags/v}
122- bump-my-version replace --current-version 3.7.0 --new-version $TAG_NAME
123- echo "Version files updated to $TAG_NAME"
124- pyenv shell --unset
125112 - name : Install dependencies for all Python versions
126113 run : |
127114 export PATH="$HOME/.pyenv/bin:$PATH"
@@ -162,6 +149,19 @@ jobs:
162149 - name : Update submodules
163150 run : |
164151 git submodule update --init --recursive --jobs 4
152+ - name : Update version for release
153+ if : startsWith(github.ref, 'refs/tags/v')
154+ run : |
155+ export PATH="$HOME/.pyenv/bin:$PATH"
156+ eval "$(pyenv init -)"
157+ pyenv shell 3.9
158+
159+ # Install bump-my-version
160+ python -m pip install bump-my-version
161+ TAG_NAME=${GITHUB_REF#refs/tags/v}
162+ bump-my-version replace --new-version $TAG_NAME
163+ echo "Version files updated to $TAG_NAME"
164+ pyenv shell --unset
165165 - name : ccache
166166 uses : hendrikmuhs/ccache-action@v1.2
167167 with :
0 commit comments