File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 62
62
verbose : true
63
63
64
64
- name : Comment on PR
65
+ if : steps.version_check.outputs.exists != 'true'
65
66
uses : actions/github-script@v7
66
67
env :
67
68
VERSION : ${{ env.VERSION }}
95
96
body: comment
96
97
});
97
98
98
-
99
+ - name : Verify package is available
100
+ if : steps.version_check.outputs.exists != 'true'
101
+ id : verify_package
102
+ run : |
103
+ # Wait for package to be available (try up to 5 times with 30s delay)
104
+ for i in {1..5}; do
105
+ if pip download --no-deps --dry-run --index-url https://test.pypi.org/simple/ "socketsecurity==${VERSION}" 2>/dev/null; then
106
+ echo "Package ${VERSION} is now available on Test PyPI"
107
+ exit 0
108
+ fi
109
+ echo "Attempt $i: Package not yet available, waiting 30s..."
110
+ sleep 30
111
+ done
112
+ echo "Package ${VERSION} not available after 5 attempts"
113
+ exit 1
99
114
100
115
- name : Login to Docker Hub
101
116
uses : docker/login-action@v3
You can’t perform that action at this time.
0 commit comments