File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929 }
3030 EOF
3131 shell: bash
32- - run : copilot -p "$PROMPT" --allow-all-tools --banner
32+ - run : copilot -p "$PROMPT" --allow-all-tools
3333 id : copilot
3434 shell : bash
3535 env :
Original file line number Diff line number Diff line change 1+ on :
2+ push :
3+ workflow_run :
4+ workflows : [CI] # add workflows here
5+ types : [completed]
6+
7+ jobs :
8+ on-failure :
9+ runs-on : ubuntu-latest
10+ concurrency :
11+ group : ci-fix
12+ cancel-in-progress : true
13+ if : ${{ github.event.workflow_run.conclusion == 'failure' }}
14+ steps :
15+ - uses : actions/checkout@v5
16+ - run : npm install -g @github/copilot
17+ - run : |
18+ mkdir -p ~/.copilot
19+ cat > ~/.copilot/mcp-config.json << EOF
20+ {
21+ "mcpServers": {
22+ "actions-toolkit-mcp": {
23+ "type": "local",
24+ "command": "npx",
25+ "tools": [ "*" ],
26+ "args": ["-y", "actions-toolkit-mcp"]
27+ }
28+ }
29+ }
30+ EOF
31+ cat ~/.copilot/mcp-config.json
32+ - run : copilot -p "$PROMPT" --allow-all-tools
33+ id : copilot
34+ env :
35+ GH_TOKEN : ${{ secrets.PAT }}
36+ PROMPT : |
37+ list all your tools.
38+ - run : |
39+ cat ~/.copilot/mcp-config.json
You can’t perform that action at this time.
0 commit comments