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
· · ·
142 action_file=".github/actions/uv_setup/action.yml"
143
144▶ # `grep -c` returns 1 on no-match and 2 on read errors. We want
145 # "no match" surfaced as the explicit count-of-zero check below;
146 # read errors must abort. Capture the exit code separately so
· · ·
146▶ # read errors must abort. Capture the exit code separately so
147 # `set -e` doesn't swallow either case.
148 set +e
· · ·
151 set -e
152 if [ "$before_rc" -gt 1 ]; then
153▶ echo "::error::grep read error on $action_file (exit=$before_rc)"
154 exit 1
155 fi
+ 3 more matches in this file