We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc440a1 commit 12976abCopy full SHA for 12976ab
.github/workflows/pr-preview.yml
@@ -30,8 +30,9 @@ jobs:
30
- name: Check if version exists on Test PyPI
31
id: version_check
32
run: |
33
- if pip index versions --index-url https://test.pypi.org/simple/ socketsecurity | grep -q "${VERSION}"; then
34
- echo "Version ${VERSION} already exists on Test PyPI"
+ # Try both exact version check and pip install dry-run
+ if pip download --no-deps --dry-run --index-url https://test.pypi.org/simple/ "socketsecurity==${VERSION}" 2>/dev/null; then
35
+ echo "Version ${VERSION} already exists on Test PyPI (found via pip download)"
36
echo "exists=true" >> $GITHUB_OUTPUT
37
else
38
echo "Version ${VERSION} not found on Test PyPI"
0 commit comments