Skip to content

Commit ff44bbf

Browse files
committed
.github/workflows/Generate-TestWorkflows.ps1: Removed step to set DOTNET_CLI_TELEMETRY_OPTOUT and DOTNET_NOLOGO actively and added them to the job directly. This step was taking 5-6 seconds just to set some variables.
1 parent 1a07f32 commit ff44bbf

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

.github/workflows/Generate-TestWorkflows.ps1

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,9 @@ jobs:
258258
- os: macos-latest
259259
framework: net472
260260
env:
261-
project_path: '$projectRelativePath'"
261+
project_path: '$projectRelativePath'
262+
DOTNET_CLI_TELEMETRY_OPTOUT: 1
263+
DOTNET_NOLOGO: 1"
262264

263265
if ($isCLI) {
264266
$fileText += "
@@ -277,12 +279,6 @@ jobs:
277279
- name: Checkout Source Code
278280
uses: actions/checkout@v3
279281
280-
- name: Disable .NET SDK Telemetry and Logo
281-
run: |
282-
echo `"DOTNET_NOLOGO=1`" | Out-File -FilePath `$env:GITHUB_ENV -Encoding utf8 -Append
283-
echo `"DOTNET_CLI_TELEMETRY_OPTOUT=1`" | Out-File -FilePath `$env:GITHUB_ENV -Encoding utf8 -Append
284-
shell: pwsh
285-
286282
- name: Setup .NET 6 SDK
287283
uses: actions/setup-dotnet@v3
288284
with:

0 commit comments

Comments
 (0)