cyrusyc commited on
Commit
1ef094e
·
1 Parent(s): 0851ebf

fix syntax

Browse files
Files changed (1) hide show
  1. .github/workflows/release.yaml +1 -1
.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 request, toml; 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
 
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