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

add script for cache cleaning

Louis Beaumont9129fada7e1b
diff --git a/.github/scripts/clean_workflows.sh b/.github/scripts/clean_workflows.sh
new file mode 100755
index 000000000..679735fd3
--- /dev/null
+++ b/.github/scripts/clean_workflows.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+# Get all cache IDs and delete them
+gh api \
+ -H "Accept: application/vnd.github+json" \
+ "/repos/mediar-ai/screenpipe/actions/caches" | \
+jq -r '.actions_caches[].id' | \
+while read -r cache_id; do
+ echo "Deleting cache ID: $cache_id"
+ gh api \
+ --method DELETE \
+ -H "Accept: application/vnd.github+json" \
+ "/repos/mediar-ai/screenpipe/actions/caches/$cache_id"
+ echo "Cache $cache_id deleted"
+done
+
+