Skip to content

Commit

Permalink
document global-json-file
Browse files Browse the repository at this point in the history
  • Loading branch information
omsmith committed Mar 12, 2022
1 parent 17b1275 commit 650fbeb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
10 changes: 10 additions & 0 deletions README.md
Expand Up @@ -53,6 +53,16 @@ steps:
include-prerelease: true
- run: dotnet build <my project>
```
global.json in a subdirectory:
```yml
steps:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v1
with:
global-json-file: csharp/global.json
- run: dotnet build <my project>
working-directory: csharp
```

Matrix Testing:
```yaml
Expand Down
4 changes: 3 additions & 1 deletion src/setup-dotnet.ts
Expand Up @@ -9,7 +9,9 @@ export async function run() {
//
// dotnet-version is optional, but needs to be provided for most use cases.
// If supplied, install / use from the tool cache.
// If not supplied, look for version in ./global.json.
// global-version-file may be specified to point to a specific global.json
// and will be used to install an additional version.
// If neither supplied, look for version in ./global.json.
// If a valid version still can't be identified, nothing will be installed.
// Proxy, auth, (etc) are still set up, even if no version is identified
//
Expand Down

0 comments on commit 650fbeb

Please sign in to comment.