Skip to content

Commit

Permalink
fix environment variables in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
LuukBlom committed Jan 13, 2025
1 parent bd60962 commit 9a33a7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
steps:
- name: Fetch information from PyPI
run: |
response=$(curl -s https://pypi.org/pypi/${PACKAGE_NAME}/json || echo "{}")
response=$(curl -s https://pypi.org/pypi/${{ env.PACKAGE_NAME }}/json || echo "{}")
latest_previous_version=$(echo $response | jq --raw-output "select(.releases != null) | .releases | keys_unsorted[]" | sort -V | tail -n 1)
if [ -z "$latest_previous_version" ]; then
echo "Package not found on PyPI."
Expand Down Expand Up @@ -106,7 +106,7 @@ jobs:
- name: Create environment
shell: bash -el {0}
run: |
conda create -n publish python=${PYTHON_VERSION}
conda create -n publish python=${{ env.PYTHON_VERSION }}
- name: Install Build tools
shell: bash -el {0}
Expand Down

0 comments on commit 9a33a7c

Please sign in to comment.