From b6209a975af5d02fd2b8966bdde429d7676bca2e Mon Sep 17 00:00:00 2001 From: Roxanne Farhad Date: Mon, 1 Dec 2025 11:33:53 -0500 Subject: [PATCH] adding the always() --- .../workflows/build-and-push-tutorial-agent.yml | 15 +++++++++++---- .../00_sync/000_hello_acp/project/acp.py | 1 + 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-and-push-tutorial-agent.yml b/.github/workflows/build-and-push-tutorial-agent.yml index 0de2919de..f58555fe3 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: ${{ !cancelled() && !failure() }} 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 63346574b..ed62b7d77 100644 --- a/examples/tutorials/00_sync/000_hello_acp/project/acp.py +++ b/examples/tutorials/00_sync/000_hello_acp/project/acp.py @@ -24,6 +24,7 @@ async def handle_message_send( message_text = "" print(message_text, message_text) + if hasattr(params.content, "content"): content_val = getattr(params.content, "content", "") if isinstance(content_val, str):