48 semver='^[0-9]+\.[0-9]+\.[0-9]+$'
49 if [[ ! "$current" =~ $semver ]]; then
50▶ echo "::error::Could not parse current uv pin from $action_file (got '$current')"
51 exit 1
52 fi
· · ·
53 if [[ ! "$latest" =~ $semver ]]; then
54▶ echo "::error::Unexpected uv tag from GitHub API (got '$latest')"
55 exit 1
56 fi
· · ·
139 action_file=".github/actions/uv_setup/action.yml"
140
141▶ # `grep -c` returns 1 on no-match and 2 on read errors. We want
142 # "no match" surfaced as the explicit count-of-zero check below;
143 # read errors must abort. Capture the exit code separately so
· · ·
143▶ # read errors must abort. Capture the exit code separately so
144 # `set -e` doesn't swallow either case.
145 set +e
· · ·
148 set -e
149 if [ "$before_rc" -gt 1 ]; then
150▶ echo "::error::grep read error on $action_file (exit=$before_rc)"
151 exit 1
152 fi
+ 3 more matches in this file