Skip to content

Commit 3c840b4

Browse files
committed
fix: copy harness to /tmp before strands action checkout wipes dist/
1 parent 7c1e252 commit 3c840b4

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

.github/workflows/strands-command.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,14 +115,12 @@ jobs:
115115
npm run build
116116
npm run build:harness
117117
npm install -g "$(npm pack | tail -1)"
118-
echo "--- Verifying harness exists ---"
119-
ls -la dist/mcp-harness/index.mjs
120-
node -e "require('fs').accessSync('${{ github.workspace }}/dist/mcp-harness/index.mjs'); console.log('File accessible')"
118+
cp dist/mcp-harness/index.mjs /tmp/mcp-harness.mjs
121119
122120
- name: Set MCP harness path
123121
if: steps.process-inputs.outputs.mode == 'tester'
124122
id: mcp-config
125-
run: echo "mcp_servers={\"mcpServers\":{\"tui-harness\":{\"command\":\"node\",\"args\":[\"${{ github.workspace }}/dist/mcp-harness/index.mjs\"]}}}" >> "$GITHUB_OUTPUT"
123+
run: echo "mcp_servers={\"mcpServers\":{\"tui-harness\":{\"command\":\"node\",\"args\":[\"/tmp/mcp-harness.mjs\"]}}}" >> "$GITHUB_OUTPUT"
126124

127125
- name: Run Strands Agent
128126
uses: ./.github/actions/strands-action

0 commit comments

Comments
 (0)