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
fix(ci): anchor release-app grep to start of commit message
Louis Beaumont30bf13dcd186
diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.ymlindex e129423d3..ff91c7b2b 100644--- a/.github/workflows/release-app.yml+++ b/.github/workflows/release-app.yml@@ -43,12 +43,13 @@ jobs:- id: checkrun: |COMMIT_MSG=$(git log -1 --pretty=%B)- if echo "$COMMIT_MSG" | grep -q "release-app"; then+ # Match only when commit message STARTS with these keywords (not mentioned in prose)+ if echo "$COMMIT_MSG" | head -1 | grep -qE "^(Bump app|release-app)"; thenecho "should_release=true" >> $GITHUB_OUTPUTelseecho "should_release=false" >> $GITHUB_OUTPUTfi- if echo "$COMMIT_MSG" | grep -q "release-app-publish"; then+ if echo "$COMMIT_MSG" | head -1 | grep -q "^release-app-publish"; thenecho "should_publish=true" >> $GITHUB_OUTPUTelseecho "should_publish=false" >> $GITHUB_OUTPUT@@ -57,7 +58,7 @@ jobs:# Beta: upload on most main commits and workflow_dispatch# This lets us test updates via beta channel before publishing stableAUTHOR=$(git log -1 --pretty=%an)- if echo "$COMMIT_MSG" | grep -qE "^(Bump app|release-app|fix|feat|refactor|perf|ci)"; then+ if echo "$COMMIT_MSG" | head -1 | grep -qE "^(Bump app|release-app|fix|feat|refactor|perf|ci)"; thenecho "should_beta=true" >> $GITHUB_OUTPUTelif [ "$AUTHOR" = "Louis Beaumont" ] || [ "$AUTHOR" = "louis030195" ]; thenecho "should_beta=true" >> $GITHUB_OUTPUT@@ -66,12 +67,12 @@ jobs:fi# Check for explicit testing or skip flags first- if echo "$COMMIT_MSG" | grep -q "release-app"; then+ if echo "$COMMIT_MSG" | head -1 | grep -q "^release-app"; thenecho "should_test=true" >> $GITHUB_OUTPUT- elif echo "$COMMIT_MSG" | grep -q "release-app-skip-test"; then+ elif echo "$COMMIT_MSG" | head -1 | grep -q "^release-app-skip-test"; thenecho "should_test=false" >> $GITHUB_OUTPUT# For regular release-app (not publish), default to testing=true- elif echo "$COMMIT_MSG" | grep -q "release-app" && ! echo "$COMMIT_MSG" | grep -q "release-app-publish"; then+ elif echo "$COMMIT_MSG" | head -1 | grep -q "^release-app" && ! echo "$COMMIT_MSG" | head -1 | grep -q "^release-app-publish"; thenecho "should_test=true" >> $GITHUB_OUTPUT# For manual workflow runs, use the input parameterelse