Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
dhuangnm authored and dhuangnm committed Sep 20, 2024
1 parent aea9786 commit 685e971
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actions/get-pypi-latest-versions/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ inputs:

outputs:
versions:
description: return latest versions of package on PyPi
description: return latest versions (separated by ;) of package on PyPi
value: ${{ steps.getpypi.outputs.versions }}

runs:
Expand All @@ -29,7 +29,7 @@ runs:
if [[ -z "${{ inputs.num_of_latest }}" ]]; then
latest=1
fi
versions=`echo "${all}" | head -${latest}`
versions=`echo "${all}" | head -${latest} | tr '\n' ';'`
echo "versions=${versions}"
echo "versions=${versions}" >> "$GITHUB_OUTPUT"
if [ -z "${versions}" ]; then
Expand Down

0 comments on commit 685e971

Please sign in to comment.