We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe75425 commit 0d95fbbCopy full SHA for 0d95fbb
1 file changed
.github/workflows/pr-preview.yml
@@ -37,6 +37,17 @@ jobs:
37
VERSION=$(hatch version | cut -d+ -f1)
38
echo "VERSION=$VERSION" >> $GITHUB_ENV
39
40
+ - name: Check if version already exists on Test PyPI
41
+ id: version_check
42
+ env:
43
+ VERSION: ${{ env.VERSION }}
44
+ run: |
45
+ if curl -s -f https://test.pypi.org/pypi/socketsecurity/${VERSION}/json > /dev/null; then
46
+ echo "exists=true" >> $GITHUB_OUTPUT
47
+ else
48
+ echo "exists=false" >> $GITHUB_OUTPUT
49
+ fi
50
+
51
- name: Build package
52
if: steps.version_check.outputs.exists != 'true'
53
run: |
@@ -146,4 +157,4 @@ jobs:
146
157
build-args: |
147
158
CLI_VERSION=${{ env.VERSION }}
148
159
PIP_INDEX_URL=https://test.pypi.org/simple
149
- PIP_EXTRA_INDEX_URL=https://pypi.org/simple
160
+ PIP_EXTRA_INDEX_URL=https://pypi.org/simple
0 commit comments