Skip to content

Commit 4797aa3

Browse files
committed
Check for HAS_BUILDABLE_COMPONENTS before installing .NET SDK
1 parent fd2ad1d commit 4797aa3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,13 @@ jobs:
108108
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps' -Name 'DumpType' -Type DWord -Value '2'
109109
110110
- name: Install .NET SDK v${{ env.DOTNET_VERSION }}
111-
if: ${{ env.ENABLE_DIAGNOSTICS == 'true' }}
111+
if: ${{ env.ENABLE_DIAGNOSTICS == 'true' && env.HAS_BUILDABLE_COMPONENTS == 'true' }}
112112
uses: actions/setup-dotnet@v4
113113
with:
114114
dotnet-version: ${{ env.DOTNET_VERSION }}
115115

116116
- name: .NET Info (if diagnostics)
117-
if: ${{ env.ENABLE_DIAGNOSTICS == 'true' }}
117+
if: ${{ env.ENABLE_DIAGNOSTICS == 'true' && env.HAS_BUILDABLE_COMPONENTS == 'true' }}
118118
run: dotnet --info
119119

120120
# Restore Tools from Manifest list in the Repository

0 commit comments

Comments
 (0)