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
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
ci: fix crab nebula binary and secret
Wesley Matos8d17b4a8f85d
diff --git a/.github/scripts/generate_changelog_md.sh b/.github/scripts/generate_changelog_md.shindex 5b6b41c11..a25260652 100755--- a/.github/scripts/generate_changelog_md.sh+++ b/.github/scripts/generate_changelog_md.sh@@ -4,15 +4,20 @@ CHANGELOG_PUBLIC_PATH=screenpipe-app-tauri/public/CHANGELOG.mdLAST_CHANGELOG=$(awk '/^#### \*\*Full Changelog:\*\*/{exit} {print}' $CHANGELOG_PUBLIC_PATH | awk '{printf "%s\\n", $0}' | sed 's/"/\\"/g')+# The if else is necessary to ensure it works both locally and on cloud+# Download cn binary from https://cdn.crabnebula.app/download/crabnebula/cn-cli/latest/cn_linux# only download it if it doesn't existif ! command -v cn &> /dev/null; thenecho "Downloading Crab Nebula binary"- curl -L -o /usr/bin/cn https://cdn.crabnebula.app/download/crabnebula/cn-cli/latest/cn_linux- chmod +x /usr/bin/cn+ curl -L -o cn https://cdn.crabnebula.app/download/crabnebula/cn-cli/latest/cn_linux+ chmod +x cn+ CN_CMD=./cn+else+ CN_CMD=cnfi-LAST_RELEASE=$(cn release list screenpipe --api-key $CN_API_KEY --format json | jq '.[0]')+LAST_RELEASE=$($CN_CMD release list screenpipe --api-key $CN_API_KEY --format json | jq '.[0]')COMMIT_DATE_LAST_RELEASE=$(echo $LAST_RELEASE | jq '.createdAt')COMMIT_LAST_RELEASE=$(git log -1 --until="$COMMIT_DATE_LAST_RELEASE" --format="%H")diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.ymlindex 8a48f354d..bbf81386b 100644--- a/.github/workflows/release-app.yml+++ b/.github/workflows/release-app.yml@@ -42,6 +42,7 @@ jobs:- name: Generate Changelogenv:OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}+ CN_API_KEY: ${{ secrets.CN_API_KEY }}run: .github/scripts/generate_changelog_md.sh ${{ env.VERSION }} ${{ github.event.inputs.commit_hash }}- name: Commit and push changelog files