Skip to content

Commit b0e86a4

Browse files
fix: Self-contained script for version extraction in release CI (#4304)
1 parent 6447dab commit b0e86a4

3 files changed

Lines changed: 15 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,15 @@ jobs:
3737
env:
3838
TAG: ${{ github.event.release.tag_name }}
3939
run: |
40-
PKG_VERSION=$(uv run --no-sync python -c "from unstructured.__version__ import __version__; print(__version__)")
40+
PKG_VERSION=$(uv run --script - <<'PYEOF'
41+
# /// script
42+
# requires-python = ">=3.11"
43+
# dependencies = ["typing-extensions", "requests"]
44+
# ///
45+
from unstructured.__version__ import __version__
46+
print(__version__)
47+
PYEOF
48+
)
4149
if [[ "$TAG" != "$PKG_VERSION" && "$TAG" != "v$PKG_VERSION" ]]; then
4250
echo "Tag '$TAG' does not match package version '$PKG_VERSION'"
4351
exit 1

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 0.22.6
2+
3+
### Fixes
4+
* Self-contained script for version extraction in release CI
5+
16
## 0.22.5
27

38
### Fixes

unstructured/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.22.5" # pragma: no cover
1+
__version__ = "0.22.6" # pragma: no cover

0 commit comments

Comments
 (0)