Skip to content

Commit b8e4213

Browse files
committed
Remove --banner option from copilot command in CI action
1 parent 4ed6325 commit b8e4213

2 files changed

Lines changed: 40 additions & 1 deletion

File tree

.github/actions/ci-fix/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ runs:
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:
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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

0 commit comments

Comments
 (0)