From 92dfcd616e4650b44102b89d9444a8e6be2747bf Mon Sep 17 00:00:00 2001 From: Nick Clegg Date: Mon, 16 Feb 2026 16:24:25 -0500 Subject: [PATCH 1/2] Update finalize condition for workflow execution Only run finalize for a valid invocation, not always --- .github/workflows/strands-command.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/strands-command.yml b/.github/workflows/strands-command.yml index fc11efcb7..bc666888d 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: startsWith(github.event.comment.body, '/strands') || github.event_name == 'workflow_dispatch' needs: [setup-and-process, execute-readonly-agent] permissions: contents: write From 991737b3c888c0232aaf7a16344577c75446a442 Mon Sep 17 00:00:00 2001 From: Nick Clegg Date: Mon, 16 Feb 2026 16:29:45 -0500 Subject: [PATCH 2/2] Apply suggestion from @Unshure --- .github/workflows/strands-command.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/strands-command.yml b/.github/workflows/strands-command.yml index bc666888d..496ce025b 100644 --- a/.github/workflows/strands-command.yml +++ b/.github/workflows/strands-command.yml @@ -79,7 +79,7 @@ jobs: write_permission: 'false' finalize: - if: startsWith(github.event.comment.body, '/strands') || github.event_name == 'workflow_dispatch' + if: always() && (startsWith(github.event.comment.body, '/strands') || github.event_name == 'workflow_dispatch') needs: [setup-and-process, execute-readonly-agent] permissions: contents: write