File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed
examples/tutorials/00_sync/000_hello_acp/project Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -25,10 +25,18 @@ permissions:
2525
2626jobs :
2727 check-permissions :
28- if : ${{ github.event_name == 'workflow_dispatch' }}
2928 runs-on : ubuntu-latest
3029 steps :
30+ - name : Check event type and permissions
31+ run : |
32+ if [ "${{ github.event_name }}" != "workflow_dispatch" ]; then
33+ echo "Skipping permission check - not a workflow_dispatch event"
34+ exit 0
35+ fi
36+ echo "Checking maintainer permissions for workflow_dispatch"
37+
3138 - name : Check if user is maintainer
39+ if : ${{ github.event_name == 'workflow_dispatch' }}
3240 uses : actions/github-script@v7
3341 with :
3442 script : |
4654 find-agents :
4755 runs-on : ubuntu-latest
4856 needs : [check-permissions]
49- if : ${{ always() && (needs.check-permissions.result == 'success' || needs.check-permissions.result == 'skipped') }}
5057 outputs :
5158 agents : ${{ steps.get-agents.outputs.agents }}
5259 has_agents : ${{ steps.get-agents.outputs.has_agents }}
@@ -121,7 +128,7 @@ jobs:
121128 fi
122129
123130 test-outputs :
124- needs : find-agents
131+ needs : [ find-agents]
125132 runs-on : ubuntu-latest
126133 steps :
127134 - name : Test outputs
@@ -130,7 +137,7 @@ jobs:
130137 echo "agents: '${{ needs.find-agents.outputs.agents }}'"
131138
132139 build-agents :
133- needs : find-agents
140+ needs : [ find-agents]
134141 if : ${{ needs.find-agents.outputs.has_agents == 'true' }}
135142 runs-on : ubuntu-latest
136143 timeout-minutes : 15
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ async def handle_message_send(
2323 # Extract content safely from the message
2424
2525 message_text = ""
26+ print (message_text , message_text )
2627 if hasattr (params .content , "content" ):
2728 content_val = getattr (params .content , "content" , "" )
2829 if isinstance (content_val , str ):
You can’t perform that action at this time.
0 commit comments