There was an error while loading. Please reload this page.
1 parent 9f020a4 commit 741d671Copy full SHA for 741d671
1 file changed
.github/workflows/pr-check.yml
@@ -162,6 +162,22 @@ jobs:
162
with:
163
persist-credentials: false
164
165
+ - name: Setting up the Package Version
166
+ env:
167
+ PY_VER_FILE: "pyproject.toml"
168
+ RELEASE_NAME: ${{ github.event.release.name }}
169
+ shell: bash
170
+ run: |-
171
+ export RELEASE_VERSION=$(echo ${{ env.RELEASE_NAME }} | sed 's|^v||g')
172
+ if cat ${{ env.PY_VER_FILE }} | grep 'version = "RELEASE_VERSION"' ; then
173
+ sed -i "s|^version = \"RELEASE_VERSION\"|version = \"${RELEASE_VERSION}\"|g" ${{ env.PY_VER_FILE }}
174
+ cat ${file}
175
+ else
176
+ echo "Version entry format is wrong in the ${{ env.PY_VER_FILE }} file...!"
177
178
+ exit 1
179
+ fi
180
+
181
- name: Setup Python
182
uses: actions/setup-python@v5
183
0 commit comments