Spaces:
Running
Running
fix syntax
Browse files
.github/workflows/release.yaml
CHANGED
@@ -95,7 +95,7 @@ jobs:
|
|
95 |
- name: Get latest version from PyPI
|
96 |
id: get_pypi_version
|
97 |
run: |
|
98 |
-
LATEST_PYPI_VERSION=$(python -c "import
|
99 |
echo "LATEST_PYPI_VERSION=$LATEST_PYPI_VERSION" >> $GITHUB_ENV
|
100 |
|
101 |
# Step 6: Compare current version with the latest tag
|
|
|
95 |
- name: Get latest version from PyPI
|
96 |
id: get_pypi_version
|
97 |
run: |
|
98 |
+
LATEST_PYPI_VERSION=$(python -c "import toml; import requests; PACKAGE_NAME = toml.load('pyproject.toml')['project']['name']; response = requests.get(f'https://pypi.org/pypi/{PACKAGE_NAME}/json'); print(response.json()['info']['version'])")
|
99 |
echo "LATEST_PYPI_VERSION=$LATEST_PYPI_VERSION" >> $GITHUB_ENV
|
100 |
|
101 |
# Step 6: Compare current version with the latest tag
|