Skip to content

Teach Copilot setup about our SDK version #11890

@rainersigwald

Description

@rainersigwald

Right now, our Copilot setup steps try to install a good version of the .NET SDK with this call to setup-dotnet:

- uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # 4.3.1
with:
global-json-file: global.json

However, our global.json is nonstandard: we don't pin an SDK in "the usual way". We use an Arcade-specific tools.dotnet element that setup-dotnet doesn't know about.

Update .github/workflows/copilot-setup-steps.yml to

  1. extract the value of tools.dotnet to get an SDK version to install
  2. pass that to setup-dotnet

I think that may involve a script using jq and setting a GitHub Actions variable in step 1, then using that variable in step 2, but I'd love to hear about better options.

Metadata

Metadata

Labels

Area: Our Own BuildProblems affecting the build or build infrastructure of the MSBuild repo itself.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions