Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix(ci): avoid SIGPIPE in release revision validation (#6559)

Ezra Ellettec7605cda1ee8
diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.yml
index 6f71ed2a2..9a135dcce 100644
--- a/.github/workflows/release-app.yml
+++ b/.github/workflows/release-app.yml
@@ -75,9 +75,9 @@ jobs:
}
MANIFEST_VERSION=$(git show "${RELEASE_SHA}:apps/screenpipe-app-tauri/src-tauri/Cargo.toml" |
- sed -n 's/^version = "\([^"]*\)"/\1/p' | head -1)
+ sed -n 's/^version = "\([^"]*\)"/\1/p')
LOCK_VERSION=$(git show "${RELEASE_SHA}:apps/screenpipe-app-tauri/src-tauri/Cargo.lock" |
- awk '/^name = "screenpipe-app"$/ { found=1; next } found && /^version = / { gsub(/"/, "", $3); print $3; exit }')
+ awk '/^name = "screenpipe-app"$/ { found=1; next } found && /^version = / && !printed { gsub(/"/, "", $3); print $3; printed=1 }')
if [[ -z "$MANIFEST_VERSION" || "$MANIFEST_VERSION" != "$LOCK_VERSION" ]]; then
echo "Cargo.toml version '$MANIFEST_VERSION' does not match Cargo.lock '$LOCK_VERSION'" >&2
diff --git a/.github/workflows/release-enterprise.yml b/.github/workflows/release-enterprise.yml
index 0ff467199..31f78645d 100644
--- a/.github/workflows/release-enterprise.yml
+++ b/.github/workflows/release-enterprise.yml
@@ -71,9 +71,9 @@ jobs:
}
MANIFEST_VERSION=$(git show "${RELEASE_SHA}:apps/screenpipe-app-tauri/src-tauri/Cargo.toml" |
- sed -n 's/^version = "\([^"]*\)"/\1/p' | head -1)
+ sed -n 's/^version = "\([^"]*\)"/\1/p')
LOCK_VERSION=$(git show "${RELEASE_SHA}:apps/screenpipe-app-tauri/src-tauri/Cargo.lock" |
- awk '/^name = "screenpipe-app"$/ { found=1; next } found && /^version = / { gsub(/"/, "", $3); print $3; exit }')
+ awk '/^name = "screenpipe-app"$/ { found=1; next } found && /^version = / && !printed { gsub(/"/, "", $3); print $3; printed=1 }')
if [[ -z "$MANIFEST_VERSION" || "$MANIFEST_VERSION" != "$LOCK_VERSION" ]]; then
echo "Cargo.toml version '$MANIFEST_VERSION' does not match Cargo.lock '$LOCK_VERSION'" >&2