Skip to content

Commit 88faa10

Browse files
committed
fix: http request error
1 parent ceffd6d commit 88faa10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/publish_python.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
id: check
8989
run: |
9090
version="${{ needs.build.outputs.version }}"
91-
status_code=$(curl -o /dev/null -s -w "%{http_code}" https://pypi.org/project/${{ env.PACKAGE_NAME }}/${version}/)
91+
status_code=$(curl -o /dev/null -s -w "%{http_code}" https://pypi.org/pypi/${{ env.PACKAGE_NAME }}/${version}/json)
9292
echo "status_code=${status_code}"
9393
if [ "$status_code" = "200" ]; then
9494
is_new_version=false

0 commit comments

Comments
 (0)