Skip to content

Commit 0a1a0a6

Browse files
committed
Enhance copilot command with logging options and upload logs as artifacts
1 parent 8258781 commit 0a1a0a6

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/copilot-test-tools.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,16 @@ jobs:
2626
}
2727
EOF
2828
cat ~/.copilot/mcp-config.json
29-
- run: copilot -p "$PROMPT" --allow-all-tools
29+
- run: copilot -p "$PROMPT" --allow-all-tools --log-level debug --log-dir ./logs
3030
id: copilot
3131
env:
3232
GH_TOKEN: ${{ secrets.PAT }}
3333
PROMPT: |
3434
list all your tools.
3535
- run: cat ~/.copilot/mcp-config.json
36+
- uses: actions/upload-artifact@v4
37+
with:
38+
name: copilot-logs
39+
path: /home/runner/.copilot/logs/
3640
- uses: mxschmitt/action-tmate@v3
3741

0 commit comments

Comments
 (0)