Skip to content

Commit 6b7b141

Browse files
committed
ci(npx): fix versions check
1 parent b398f4d commit 6b7b141

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/pipx-check-versions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
current_version="${BASH_REMATCH[2]}"
4343
# Get latest version from PyPI using pip index versions
4444
# The version in parentheses on the first line is the latest
45-
latest_version="$(\pip index versions "csvkit" 2>/dev/null | { \grep -e '^Available versions: ' || true } | \cut -d ',' -f 1 | \sed -e 's/^.*: //')"
45+
latest_version="$(\pip index versions "${package}" 2>/dev/null | { \grep -e '^Available versions: ' || true; } | \cut -d ',' -f 1 | \sed -e 's/^.*: //')"
4646
if [ "${current_version}" != "${latest_version}" ]; then
4747
echo "${package}: ${current_version} -> ${latest_version}"
4848
rc=$((rc+1))

0 commit comments

Comments
 (0)