From fe5534da3839f380da360b8b95ad3d3c1c6c02e1 Mon Sep 17 00:00:00 2001 From: Zachary Eisinger Date: Fri, 29 May 2020 13:39:14 -0700 Subject: [PATCH 1/2] Include useful environment variables in the README --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index ea327fd..ed1bf16 100644 --- a/README.md +++ b/README.md @@ -69,6 +69,23 @@ steps: run: dotnet nuget push /bin/Release/*.nupkg ``` +## Environment Variables to use with dotnet + +Some environment variables may be necessary for your particular case or to improve logging. Some examples are listed below, but the full list with complete details can be found here: https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet#environment-variables + +- DOTNET_NOLOGO - removes logo and telemetry message from first run of dotnet cli (default: false) +- DOTNET_CLI_TELEMETRY_OPTOUT - opt-out of telemetry being sent to Microsoft (default: false) +- DOTNET_MULTILEVEL_LOOKUP - configures whether the global install location is used as a fall-back (default: true) + +Example usage: +``` +- uses: actions/setup-dotnet@v1 + with: + dotnet-version: '3.1.100' # SDK Version to use. + env: + DOTNET_NOLOGO: true +``` + # License The scripts and documentation in this project are released under the [MIT License](LICENSE) From 5091cc16d9d6b172b4df8a5c30ec8d629c35de7d Mon Sep 17 00:00:00 2001 From: Zachary Eisinger Date: Mon, 1 Jun 2020 08:53:23 -0700 Subject: [PATCH 2/2] Update environment variable scope --- README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ed1bf16..67883a9 100644 --- a/README.md +++ b/README.md @@ -79,11 +79,15 @@ Some environment variables may be necessary for your particular case or to impro Example usage: ``` -- uses: actions/setup-dotnet@v1 - with: - dotnet-version: '3.1.100' # SDK Version to use. +build: + runs-on: ubuntu-latest env: DOTNET_NOLOGO: true + steps: + - uses: actions/checkout@master + - uses: actions/setup-dotnet@v1 + with: + dotnet-version: '3.1.100' # SDK Version to use. ``` # License