Skip to content

Commit aa3d9d4

Browse files
committed
ci(docker): de-dockerize version checks
1 parent 12a99bd commit aa3d9d4

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 "$package" 2>/dev/null | \head -1 | \sed -E 's/.*\(([0-9.]+)\).*/\1/' || echo "unknown")
45+
latest_version="$(\pip index versions "csvkit" 2>/dev/null | \grep -e '^Available versions: ' | \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)