Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
TypeScript agentic-aiagentsaiai-agentsaiagentsdeveloper-toolsfunction-callinggpt-4javascriptjsllmllmopsmcppythonremote-mcp-serverssetypescript
fix: handle empty BEFORE/AFTER on workflow_dispatch
Sushmitha Mallesh1efb55eb859c
diff --git a/.github/workflows/docs.sdk-change-sync.yml b/.github/workflows/docs.sdk-change-sync.ymlindex 1c2d3f078..3fbbbd4af 100644--- a/.github/workflows/docs.sdk-change-sync.yml+++ b/.github/workflows/docs.sdk-change-sync.yml@@ -31,7 +31,11 @@ jobs:BEFORE: ${{ github.event.before }}AFTER: ${{ github.event.after }}run: |- if [[ "$BEFORE" =~ ^0+$ ]] || ! git cat-file -e "$BEFORE" 2>/dev/null; then+ if [ -z "$AFTER" ] || ! git cat-file -e "$AFTER" 2>/dev/null; then+ AFTER=$(git rev-parse HEAD)+ fi++ if [ -z "$BEFORE" ] || [[ "$BEFORE" =~ ^0+$ ]] || ! git cat-file -e "$BEFORE" 2>/dev/null; thenecho "BEFORE ref unavailable — falling back to HEAD~1"BEFORE=$(git rev-parse HEAD~1)fi