Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions .github/workflows/build-and-push-tutorial-agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,18 @@ permissions:

jobs:
check-permissions:
if: ${{ github.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-latest
steps:
- name: Check event type and permissions
run: |
if [ "${{ github.event_name }}" != "workflow_dispatch" ]; then
echo "Skipping permission check - not a workflow_dispatch event"
exit 0
fi
echo "Checking maintainer permissions for workflow_dispatch"

- name: Check if user is maintainer
if: ${{ github.event_name == 'workflow_dispatch' }}
uses: actions/github-script@v7
with:
script: |
Expand All @@ -46,7 +54,6 @@ jobs:
find-agents:
runs-on: ubuntu-latest
needs: [check-permissions]
if: ${{ always() && (needs.check-permissions.result == 'success' || needs.check-permissions.result == 'skipped') }}
outputs:
agents: ${{ steps.get-agents.outputs.agents }}
has_agents: ${{ steps.get-agents.outputs.has_agents }}
Expand Down Expand Up @@ -121,7 +128,7 @@ jobs:
fi

test-outputs:
needs: find-agents
needs: [find-agents]
runs-on: ubuntu-latest
steps:
- name: Test outputs
Expand All @@ -130,7 +137,7 @@ jobs:
echo "agents: '${{ needs.find-agents.outputs.agents }}'"

build-agents:
needs: find-agents
needs: [find-agents]
if: ${{ needs.find-agents.outputs.has_agents == 'true' }}
runs-on: ubuntu-latest
timeout-minutes: 15
Expand Down
1 change: 1 addition & 0 deletions examples/tutorials/00_sync/000_hello_acp/project/acp.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ async def handle_message_send(
# Extract content safely from the message

message_text = ""
print(message_text, message_text)
if hasattr(params.content, "content"):
content_val = getattr(params.content, "content", "")
if isinstance(content_val, str):
Expand Down