We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7836e41 + 4978060 commit e44bca1Copy full SHA for e44bca1
1 file changed
.github/workflows/release.yml
@@ -19,7 +19,11 @@ jobs:
19
- name: Verify version matches tag
20
run: |
21
TAG="${GITHUB_REF#refs/tags/v}"
22
- PKG_VERSION=$(python -c "from src.tikhub._version import __version__; print(__version__)")
+ PKG_VERSION=$(python -c "
23
+import re, pathlib
24
+text = pathlib.Path('src/tikhub/_version.py').read_text()
25
+print(re.search(r'__version__\s*=\s*[\"'\''](.*?)[\"'\'']', text).group(1))
26
+")
27
if [ "$TAG" != "$PKG_VERSION" ]; then
28
echo "::error::tag $TAG does not match package version $PKG_VERSION"
29
exit 1
0 commit comments