Skip to content

Commit 5021560

Browse files
committed
Check version consistency
1 parent 394b2ba commit 5021560

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/package.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,16 @@ jobs:
6565
needs: [build-linux, build-windows]
6666
runs-on: ubuntu-latest
6767
steps:
68+
- uses: actions/checkout@v4
69+
- uses: astral-sh/setup-uv@v6
70+
- name: Check version consistency
71+
run: |
72+
tag_version=${GITHUB_REF/refs\/tags\/v/}
73+
proj_version=$(uv run --no-project --with poetry poetry version -s)
74+
if [ "$tag_version" != "$proj_version" ]; then
75+
echo "::error title=Version mismatch::Tag version \"$tag_version\" does not match project version \"$proj_version\"."
76+
exit 1
77+
fi
6878
- uses: actions/download-artifact@v4
6979
with:
7080
path: artifacts

0 commit comments

Comments
 (0)