Skip to content

Commit

Permalink
Add structured / informative output
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarbuzzi committed Dec 9, 2024
1 parent 04353c0 commit 9ec60d7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions actions/get-pypi-latest-versions/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,17 @@ runs:
id: getpypi
shell: bash
run: |-
echo "PWD: $(pwd)"
echo "ACTION_PATH: $ACTION_PATH"
echo "::group::get-pypi-latest-versions - preparing virtual environment"
VENV_NAME="venv-pypi-versions"
python -m venv "$VENV_NAME"
source "$VENV_NAME/bin/activate"
pip install requests rss-parser
echo "::endgroup::"
echo "get-pypi-latest-versions - getting latest '$NUM_VERSIONS' version(s) of '$PACKAGE_NAME'"
versions=$(python "$ACTION_PATH/get-versions.py" "$PACKAGE_NAME" --num_versions "$NUM_VERSIONS")
echo "get-pypi-latest-versions - cleaning up virtual environment"
rm -r "$VENV_NAME"
if [ -z "$versions" ]; then
Expand Down

0 comments on commit 9ec60d7

Please sign in to comment.