Skip to content

Commit 5959d30

Browse files
authored
Merge pull request #215 from scaleapi/RF/fix-build-agents
testing the fix
2 parents 7e791d6 + 64fac4a commit 5959d30

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

.github/workflows/build-and-push-tutorial-agent.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,15 @@ jobs:
7171
7272
echo "### 🔄 Rebuilding All Tutorial Agents" >> $GITHUB_STEP_SUMMARY
7373
else
74-
# Always compare against main branch
75-
BASE_BRANCH="origin/main"
76-
echo "Comparing against main branch: $BASE_BRANCH"
77-
74+
# Determine the base branch for comparison
75+
if [ "${{ github.event_name }}" = "pull_request" ]; then
76+
BASE_BRANCH="origin/${{ github.base_ref }}"
77+
echo "Comparing against PR base branch: $BASE_BRANCH"
78+
else
79+
# For pushes to main, compare against the first parent (pre-merge state)
80+
BASE_BRANCH="HEAD^1"
81+
echo "Comparing against previous commit: $BASE_BRANCH"
82+
fi
7883
# Check each agent directory for changes
7984
for agent_dir in $all_agents; do
8085
echo "Checking $agent_dir for changes..."

examples/tutorials/00_sync/000_hello_acp/project/acp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ async def handle_message_send(
2121
) -> Union[TaskMessageContent, AsyncGenerator[TaskMessageUpdate, None]]:
2222
"""Default message handler with streaming support"""
2323
# Extract content safely from the message
24-
logger.info("msg 2", params)
24+
2525
message_text = ""
2626
if hasattr(params.content, "content"):
2727
content_val = getattr(params.content, "content", "")

0 commit comments

Comments
 (0)