Use grep for rev parsing in CI

This commit is contained in:
DJTBOT 2026-01-04 19:11:57 +01:00
parent a116bd794d
commit f485e722ac

View File

@ -28,7 +28,7 @@ jobs:
- name: Resolve upstream version
id: version
run: |
rev=$(rg -o 'rev\s*=\s*"[^"]+"' nix/sources/clawdbot-source.nix | head -n 1 | sed -E 's/.*"([^"]+)".*/\1/')
rev=$(grep -E 'rev\s*=\s*"' nix/sources/clawdbot-source.nix | head -n 1 | sed -E 's/.*"([^"]+)".*/\1/')
if [ -z "$rev" ]; then
echo "rev not found in nix/sources/clawdbot-source.nix" >&2
exit 1