Use grep for rev parsing in CI
This commit is contained in:
parent
a116bd794d
commit
f485e722ac
2
.github/workflows/docker-image.yml
vendored
2
.github/workflows/docker-image.yml
vendored
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user