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: enterprise windows build notification step shouldn't fail the whole build

Louis Beaumonta5f7c76e57cc
diff --git a/.github/workflows/release-enterprise-windows.yml b/.github/workflows/release-enterprise-windows.yml
index 12607c527..62b90aaa7 100644
--- a/.github/workflows/release-enterprise-windows.yml
+++ b/.github/workflows/release-enterprise-windows.yml
@@ -288,12 +288,18 @@ jobs:
- name: Notify enterprise build subscribers
shell: bash
+ continue-on-error: true
env:
ENTERPRISE_NOTIFY_SECRET: ${{ secrets.ENTERPRISE_NOTIFY_SECRET }}
run: |
VERSION=$(grep '^version = ' apps/screenpipe-app-tauri/src-tauri/Cargo.toml | head -1 | sed 's/version = "\(.*\)"/\1/')
- curl -sf -X POST "https://screenpi.pe/api/enterprise/builds/notify" \
+ HTTP_CODE=$(curl -s -o /tmp/notify_response.txt -w "%{http_code}" -X POST "https://screenpi.pe/api/enterprise/builds/notify" \
-H "Authorization: Bearer $ENTERPRISE_NOTIFY_SECRET" \
-H "Content-Type: application/json" \
- -d "{\"version\": \"$VERSION\"}"
- echo "Notified subscribers for v$VERSION"
+ -d "{\"version\": \"$VERSION\"}")
+ if [ "$HTTP_CODE" -ge 200 ] && [ "$HTTP_CODE" -lt 300 ]; then
+ echo "Notified subscribers for v$VERSION (HTTP $HTTP_CODE)"
+ else
+ echo "::warning::Failed to notify subscribers for v$VERSION (HTTP $HTTP_CODE)"
+ cat /tmp/notify_response.txt
+ fi
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
index 70be0e314..1df69887e 100644
--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
@@ -9338,7 +9338,7 @@ dependencies = [
[[package]]
name = "screenpipe-app"
-version = "2.2.179"
+version = "2.2.177"
dependencies = [
"anyhow",
"arboard",