diff --git a/.github/workflows/strands-command.yml b/.github/workflows/strands-command.yml index fc11efcb7..496ce025b 100644 --- a/.github/workflows/strands-command.yml +++ b/.github/workflows/strands-command.yml @@ -79,7 +79,7 @@ jobs: write_permission: 'false' finalize: - if: always() + if: always() && (startsWith(github.event.comment.body, '/strands') || github.event_name == 'workflow_dispatch') needs: [setup-and-process, execute-readonly-agent] permissions: contents: write