From f14e97736dbe0f20a462060de395823d40881406 Mon Sep 17 00:00:00 2001 From: Bruno Studer Date: Wed, 3 Jun 2026 15:42:17 +0200 Subject: [PATCH] tiny fix --- .github/workflows/push_pypi.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/push_pypi.yml b/.github/workflows/push_pypi.yml index f1a8a166a..684024941 100644 --- a/.github/workflows/push_pypi.yml +++ b/.github/workflows/push_pypi.yml @@ -34,10 +34,10 @@ jobs: run: | for pkg in core client; do localVer=$(awk -F' *= *' '/version/{gsub(/"/,"",$2);print $2}' "${pkg}/pyproject.toml") - curl -s "https://pypi.org/pypi/lomas-core/${localVer}/json" | jq -e -r '.last_serial' - if [ $? -eq 0 ]; then - echo "lomas-${pkg} v${localVer} already published" + res=$(curl -s "https://pypi.org/pypi/lomas-${pkg}/${localVer}/json" | jq -r '.last_serial') + if [ "$res" = "null" ]; then + uv publish --check-url https://pypi.org/simple --token ${{ secrets.PYPI_TOKEN }} dist/lomas_${pkg}-${localVer}-* else - uv publish --check-url https://pypi.org/simple --token ${{ secrets.PYPI_TOKEN }} "dist/lomas_${pkg}-${localVer}-*" + echo "lomas-${pkg} v${localVer} already published" fi done