diff --git a/.github/workflows/build-and-push-tutorial-agent.yml b/.github/workflows/build-and-push-tutorial-agent.yml index 40f42e42..f58555fe 100644 --- a/.github/workflows/build-and-push-tutorial-agent.yml +++ b/.github/workflows/build-and-push-tutorial-agent.yml @@ -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: | @@ -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 }} @@ -121,7 +128,7 @@ jobs: fi test-outputs: - needs: find-agents + needs: [find-agents] runs-on: ubuntu-latest steps: - name: Test outputs @@ -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 diff --git a/examples/tutorials/00_sync/000_hello_acp/project/acp.py b/examples/tutorials/00_sync/000_hello_acp/project/acp.py index 21a7f9e7..63346574 100644 --- a/examples/tutorials/00_sync/000_hello_acp/project/acp.py +++ b/examples/tutorials/00_sync/000_hello_acp/project/acp.py @@ -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):