Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rhjdjong authored Dec 4, 2024
1 parent 1b4153e commit a7f45e1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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
Expand Down

0 comments on commit a7f45e1

Please sign in to comment.