Skip to content

Commit b6209a9

Browse files
committed
adding the always()
1 parent 0a25fe5 commit b6209a9

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: ${{ !cancelled() && !failure() }}
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
@@ -24,6 +24,7 @@ async def handle_message_send(
2424

2525
message_text = ""
2626
print(message_text, message_text)
27+
2728
if hasattr(params.content, "content"):
2829
content_val = getattr(params.content, "content", "")
2930
if isinstance(content_val, str):

0 commit comments

Comments
 (0)