From 2681e86cd362d7457a33f41c5592abb683b8aabc Mon Sep 17 00:00:00 2001 From: Deep Choudhery Date: Fri, 1 May 2026 13:56:50 -0700 Subject: [PATCH 1/4] Add step to copy README from modernize-dotnet repo Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- coding-agent/linux/copilot-setup-steps.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/coding-agent/linux/copilot-setup-steps.yml b/coding-agent/linux/copilot-setup-steps.yml index ae24cf2c5..f0721104f 100644 --- a/coding-agent/linux/copilot-setup-steps.yml +++ b/coding-agent/linux/copilot-setup-steps.yml @@ -13,4 +13,14 @@ jobs: steps: - uses: dotnet/modernize-dotnet-actions@main with: - dotnet-version: '10.0.x' \ No newline at end of file + dotnet-version: '10.0.x' + + - uses: actions/checkout@v4 + with: + repository: dotnet/modernize-dotnet + path: _modernize-dotnet + sparse-checkout: | + README.md + + - run: cp _modernize-dotnet/README.md ./ + shell: bash \ No newline at end of file From 62ac879f93e71f540d54c4eaf6873ba2e09450e1 Mon Sep 17 00:00:00 2001 From: Deep Choudhery Date: Fri, 1 May 2026 13:58:39 -0700 Subject: [PATCH 2/4] Use curl instead of checkout to fetch README Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- coding-agent/linux/copilot-setup-steps.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/coding-agent/linux/copilot-setup-steps.yml b/coding-agent/linux/copilot-setup-steps.yml index f0721104f..3b19f4303 100644 --- a/coding-agent/linux/copilot-setup-steps.yml +++ b/coding-agent/linux/copilot-setup-steps.yml @@ -15,12 +15,5 @@ jobs: with: dotnet-version: '10.0.x' - - uses: actions/checkout@v4 - with: - repository: dotnet/modernize-dotnet - path: _modernize-dotnet - sparse-checkout: | - README.md - - - run: cp _modernize-dotnet/README.md ./ + - run: curl -fsSL -o README.md https://raw.githubusercontent.com/dotnet/modernize-dotnet/main/README.md shell: bash \ No newline at end of file From 12ddd05b5c16e1c768aa13981be7c1d32f52e784 Mon Sep 17 00:00:00 2001 From: Deep Choudhery Date: Fri, 1 May 2026 14:20:09 -0700 Subject: [PATCH 3/4] Test: overwrite agent file with hello world on runner Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- coding-agent/linux/copilot-setup-steps.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/coding-agent/linux/copilot-setup-steps.yml b/coding-agent/linux/copilot-setup-steps.yml index 3b19f4303..1e1ad8351 100644 --- a/coding-agent/linux/copilot-setup-steps.yml +++ b/coding-agent/linux/copilot-setup-steps.yml @@ -15,5 +15,12 @@ jobs: with: dotnet-version: '10.0.x' - - run: curl -fsSL -o README.md https://raw.githubusercontent.com/dotnet/modernize-dotnet/main/README.md + - run: | + mkdir -p .github/agents + cat > .github/agents/modernize-dotnet.agent.md << 'EOF' + --- + name: modernize-dotnet + --- + You are a test agent. When invoked, respond only with "Hello World!" and nothing else. + EOF shell: bash \ No newline at end of file From e4eb2d74b45cf23c5b273947438d72934f416366 Mon Sep 17 00:00:00 2001 From: Deep Choudhery Date: Fri, 1 May 2026 14:22:14 -0700 Subject: [PATCH 4/4] Test: overwrite agent file on Windows runner too Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- coding-agent/windows/copilot-setup-steps.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/coding-agent/windows/copilot-setup-steps.yml b/coding-agent/windows/copilot-setup-steps.yml index 13e366d20..cf2ad34bc 100644 --- a/coding-agent/windows/copilot-setup-steps.yml +++ b/coding-agent/windows/copilot-setup-steps.yml @@ -15,4 +15,14 @@ jobs: with: dotnet-version: '10.0.x' #set 'true' to install .NET Framework SDK and targeting packs (4.7.1 – 4.8.1) on Windows runners, required for .NET Framework or desktop workloads - install-framework-targeting-packs: 'true' \ No newline at end of file + install-framework-targeting-packs: 'true' + + - run: | + New-Item -ItemType Directory -Force -Path .github\agents | Out-Null + @" + --- + name: modernize-dotnet + --- + You are a test agent. When invoked, respond only with "Hello World!" and nothing else. + "@ | Set-Content -Path .github\agents\modernize-dotnet.agent.md + shell: pwsh \ No newline at end of file