We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0547c6 commit 4a939f8Copy full SHA for 4a939f8
.github/copilot-setup.sh
@@ -1,9 +1,18 @@
1
#!/bin/bash
2
+#
3
+# GitHub Copilot Agent Setup Script
4
5
+# This script is automatically executed by GitHub Copilot Agent before starting work.
6
+# It ensures the correct .NET SDK version (as specified in global.json) is installed.
7
8
+# See: https://docs.github.com/en/copilot/how-tos/use-copilot-agents/coding-agent/customize-the-agent-environment
9
10
set -e
11
12
echo "=== Copilot Setup: .NET SDK Installation ==="
13
14
# Parse the SDK version from global.json
15
+# Uses GITHUB_WORKSPACE if available, otherwise uses current directory
16
GLOBAL_JSON_PATH="${GITHUB_WORKSPACE:-$(pwd)}/global.json"
17
18
if [ ! -f "$GLOBAL_JSON_PATH" ]; then
0 commit comments