We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f83ccd0 commit 232ac3fCopy full SHA for 232ac3f
.github/workflows/release.yml
@@ -53,7 +53,12 @@ jobs:
53
- name: Verify tag matches package version
54
run: |
55
TAG="${GITHUB_REF_NAME#v}"
56
- VERSION=$(python -c "import logtide_sdk; print(logtide_sdk.__version__)")
+ VERSION=$(python -c "
57
+ import re, pathlib
58
+ content = pathlib.Path('pyproject.toml').read_text()
59
+ print(re.search(r'^version\s*=\s*\"(.+?)\"', content, re.MULTILINE).group(1))
60
+ ")
61
+ echo "Tag: $TAG | Package version: $VERSION"
62
if [ "$TAG" != "$VERSION" ]; then
63
echo "ERROR: tag '$TAG' does not match package version '$VERSION'"
64
exit 1
0 commit comments