File tree Expand file tree Collapse file tree 1 file changed +0
-28
lines changed
Expand file tree Collapse file tree 1 file changed +0
-28
lines changed Original file line number Diff line number Diff line change @@ -307,34 +307,6 @@ jobs:
307307 registry-token : ${{ secrets.CARGO_REGISTRY_TOKEN }}
308308 env :
309309 CARGO_REGISTRY_TOKEN : ${{ secrets.CARGO_REGISTRY_TOKEN }}
310- - name : Wait for crate availability
311- run : |
312- set -euo pipefail
313- VERSION=$(python3 - <<'PY'
314- import tomllib
315- from pathlib import Path
316- with open(Path("Cargo.toml"), "rb") as fh :
317- data = tomllib.load(fh)
318- print(data["workspace"]["package"]["version"])
319- PY
320- )
321- for crate in ontoenv ontoenv-cli; do
322- echo "Waiting for ${crate} ${VERSION} to appear on crates.io..."
323- success=0
324- for attempt in {1..10}; do
325- if curl --silent --fail "https://crates.io/api/v1/crates/${crate}/${VERSION}" >/dev/null; then
326- echo "${crate} ${VERSION} is available."
327- success=1
328- break
329- fi
330- echo "Attempt ${attempt}/10 : ${crate} ${VERSION} not visible yet; retrying in 30s..."
331- sleep 30
332- done
333- if [ "${success}" -ne 1 ]; then
334- echo "Timed out waiting for ${crate} ${VERSION} to propagate to crates.io."
335- exit 1
336- fi
337- done
338310 full_archive :
339311 if : github.event_name == 'release'
340312 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments