Skip to content

Commit d6d9f24

Browse files
committed
Add additional environment variables and update prompt in action.yml and test-copilot.yml
1 parent 04a364d commit d6d9f24

2 files changed

Lines changed: 16 additions & 6 deletions

File tree

.github/actions/copilot/action.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,12 @@ runs:
3535
"args": ["-y", "actions-toolkit-mcp"],
3636
"tools": ["*"],
3737
"env": {
38-
"GITHUB_STEP_SUMMARY": "${GITHUB_STEP_SUMMARY}"
38+
"GITHUB_STEP_SUMMARY": "${GITHUB_STEP_SUMMARY}",
39+
"GITHUB_ENV": "${GITHUB_ENV}",
40+
"RUNNER_DEBUG": "${RUNNER_DEBUG}",
41+
"GITHUB_SERVER_URL": "${GITHUB_SERVER_URL}",
42+
"GITHUB_REPOSITORY": "${GITHUB_REPOSITORY}",
43+
"GITHUB_EVENT_PATH": "${GITHUB_EVENT_PATH}"
3944
}
4045
}
4146
}'
@@ -46,6 +51,11 @@ runs:
4651
cat $XDG_CONFIG_HOME/.copilot/mcp-config.json
4752
env:
4853
GITHUB_STEP_SUMMARY: ${{ github.step_summary }}
54+
GITHUB_ENV: ${{ github.env }}
55+
RUNNER_DEBUG: ${{ runner.debug }}
56+
GITHUB_SERVER_URL: ${{ github.server_url }}
57+
GITHUB_REPOSITORY: ${{ github.repository }}
58+
GITHUB_EVENT_PATH: ${{ github.event_path }}
4959
shell: bash
5060
- run: |
5161
ls -al $XDG_CONFIG_HOME/.copilot
@@ -64,7 +74,6 @@ runs:
6474
- run: copilot -p "$PROMPT" --allow-all-tools --log-level all --log-dir ~/.copilot/logs --save-trajectory-output ~/.copilot/trajectory.md
6575
id: copilot
6676
env:
67-
GITHUB_STEP_SUMMARY: ${{ github.step_summary }}
6877
GH_TOKEN: ${{ inputs.github-token }}
6978
PROMPT: ${{ inputs.prompt }}
7079
shell: bash
@@ -76,5 +85,5 @@ runs:
7685
~/.copilot/logs/
7786
~/.copilot/trajectory.md
7887
/home/runner/.config/
79-
# - uses: mxschmitt/action-tmate@v3
88+
8089

.github/workflows/test-copilot.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ jobs:
99
github-token: ${{ secrets.PAT }}
1010
prompt: |
1111
First print the env variables.
12-
13-
Create annotations and write a job summary using mcp tools.
1412
15-
If something fails try to understand why and suggest a fix.
13+
explore the runner and runner OS to understand the environment
14+
Search /home/runner
15+
explain files you find
1616
17+
Create annotations and write a job summary using mcp tools.

0 commit comments

Comments
 (0)