Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
PYPI_VERSION, again
Browse files Browse the repository at this point in the history
  • Loading branch information
Invincibear committed Jan 23, 2024
1 parent 8612db1 commit ea74cc2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/publish_to_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ jobs:
id: check_version
run: |
LOCAL_VERSION=$(python setup.py --version)
PYPI_VERSION = requests.get('https://pypi.org/pypi/paddle-billing-python-sdk/json').json()['info']['version']
response = requests.get('https://pypi.org/pypi/paddle-billing-python-sdk/json')
PYPI_VERSION = response.json()['info']['version']
if [ "$LOCAL_VERSION" != "$PYPI_VERSION" ]; then
echo "Version has changed. Current version: $LOCAL_VERSION"
echo "##[set-output name=should_publish;]true"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from setuptools import setup, find_packages


VERSION = '0.0.1a5'
VERSION = '0.0.1a6'


setup(
Expand Down

0 comments on commit ea74cc2

Please sign in to comment.