From a7f45e11288fc34d39134e82c3a45e03cf1558bc Mon Sep 17 00:00:00 2001 From: Ruud de Jong Date: Wed, 4 Dec 2024 19:28:55 +0100 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c346e43..f625202 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,8 +9,11 @@ on: jobs: pypi_version: runs-on: ubuntu-latest + outputs: + latest_version: ${{ steps.get_pypi_version.outputs.latest_version }} steps: - name: Fetch information from PyPI + id: get_pypi_version run: | response=$(curl -s https://pypi.org/pypi/${{ github.event.repository.name }}/json || echo "{}") latest_version=$(echo $response | jq --raw-output "select(.releases != null) | .releases | keys_unsorted | last") @@ -36,8 +39,7 @@ jobs: - name: Install Hatch run: | - python -m pip install --upgrade pip setuptools wheel - pip install hatch + python -m pip install --upgrade pip setuptools wheel hatch - name: Compare current version with PyPI version id: version