Skip to content

Commit 5125d8b

Browse files
authored
Merge pull request #219 from scaleapi/RF/fix-build-agents
adding the always()
2 parents af8508c + e73a0e1 commit 5125d8b

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

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

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,18 @@ permissions:
2525

2626
jobs:
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: |
@@ -46,7 +54,6 @@ jobs:
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

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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):

0 commit comments

Comments
 (0)