File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 54
54
run : |
55
55
. .venv/bin/activate
56
56
57
- echo "VERSION=$(python -c 'from importlib.metadata import version; print(".".join(version("autogen").split(".")[:3]))')" >> $GITHUB_ENV
58
- echo "IS_RC=$(python -c 'from importlib.metadata import version; print("rc" in version("autogen"))')" >> $GITHUB_ENV
57
+ # Get version directly from the package using a more reliable method
58
+ VERSION=$(python -c 'import os, sys; sys.path.insert(0, os.getcwd()); import autogen; print(".".join(autogen.__version__.split(".")[:3]))')
59
+ echo "VERSION=$VERSION" >> $GITHUB_ENV
60
+
61
+ # Check if version contains "rc"
62
+ IS_RC=$(python -c 'import os, sys; sys.path.insert(0, os.getcwd()); import autogen; print("rc" in autogen.__version__)')
63
+ echo "IS_RC=$IS_RC" >> $GITHUB_ENV
59
64
60
65
echo $VERSION
61
66
echo $IS_RC
You can’t perform that action at this time.
0 commit comments