Skip to content

Commit 85aa583

Browse files
committed
Refactor copilot configuration setup and update mcpServers type
1 parent 1c83460 commit 85aa583

1 file changed

Lines changed: 7 additions & 10 deletions

File tree

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

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,27 +15,24 @@ jobs:
1515
node-version: '22'
1616
- run: npm install -g @github/copilot
1717
- run: |
18-
mkdir -p ~/.copilot
19-
cat > ~/.copilot/mcp-config.json << 'EOF'
20-
{
18+
mkdir -p /home/runner/.config/.copilot
19+
echo '{
2120
"mcpServers": {
2221
"actions-toolkit-mcp": {
23-
"type": "austen-fails",
2422
"command": "npx",
25-
"tools": ["*"],
26-
"args": ["-y", "actions-toolkit-mcp"]
23+
"args": ["-y", "actions-toolkit-mcp"],
24+
"tools": ["*"]
2725
}
2826
}
29-
}
30-
EOF
31-
cat ~/.copilot/mcp-config.json
27+
}' > /home/runner/.config/.copilot/mcp-config.json
28+
cat /home/runner/.config/.copilot/mcp-config.json
3229
- run: copilot -p "$PROMPT" --allow-all-tools --log-level debug --log-dir ~/.copilot/logs
3330
id: copilot
3431
env:
3532
GH_TOKEN: ${{ secrets.PAT }}
3633
PROMPT: |
3734
list all your tools.
38-
- run: cat ~/.copilot/mcp-config.json
35+
- run: cat /home/runner/.config/.copilot/mcp-config.json
3936
- uses: actions/upload-artifact@v4
4037
with:
4138
name: copilot-logs

0 commit comments

Comments
 (0)