Skip to content

Commit 8dad89e

Browse files
committed
Cleanup, inline temporary variables
1 parent 3322131 commit 8dad89e

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,8 @@ jobs:
134134
run: |
135135
$changedComponents = $(./tooling/Get-Changed-Components.ps1)
136136
$buildableChangedComponents = $(./tooling/MultiTarget/Filter-Supported-Components.ps1 -Components $changedComponents -MultiTargets ${{ matrix.multitarget }} -WinUIMajorVersion ${{ matrix.winui }})
137-
$hasBuildableComponents = $buildableChangedComponents.Count -gt 0
138-
$joinedComponents = ($buildableChangedComponents | ForEach-Object { "'$_'" }) -join ','
139-
echo "CHANGED_COMPONENTS_LIST=$joinedComponents" >> $env:GITHUB_ENV
140-
echo "HAS_BUILDABLE_COMPONENTS=$hasBuildableComponents" >> $env:GITHUB_ENV
137+
echo "CHANGED_COMPONENTS_LIST=$(($buildableChangedComponents | ForEach-Object { "'$_'" }) -join ',')" >> $env:GITHUB_ENV
138+
echo "HAS_BUILDABLE_COMPONENTS=$(buildableChangedComponents.Count -gt 0)" >> $env:GITHUB_ENV
141139
142140
# Generate full solution with all projects (sample gallery heads, components, tests)
143141
- name: Generate solution with ${{ matrix.multitarget }} gallery, components and tests
@@ -272,10 +270,8 @@ jobs:
272270
run: |
273271
$changedComponents = $(./tooling/Get-Changed-Components.ps1)
274272
$buildableChangedComponents = $(./tooling/MultiTarget/Filter-Supported-Components.ps1 -Components $changedComponents -MultiTargets ${{ matrix.multitarget }} -WinUIMajorVersion ${{ matrix.winui }})
275-
$hasBuildableComponents = $buildableChangedComponents.Count -gt 0
276-
$joinedComponents = ($buildableChangedComponents | ForEach-Object { "'$_'" }) -join ','
277-
echo "CHANGED_COMPONENTS_LIST=$joinedComponents" >> $env:GITHUB_ENV
278-
echo "HAS_BUILDABLE_COMPONENTS=$hasBuildableComponents" >> $env:GITHUB_ENV
273+
echo "CHANGED_COMPONENTS_LIST=$(($buildableChangedComponents | ForEach-Object { "'$_'" }) -join ',')" >> $env:GITHUB_ENV
274+
echo "HAS_BUILDABLE_COMPONENTS=$(buildableChangedComponents.Count -gt 0)" >> $env:GITHUB_ENV
279275
280276
# Build and pack component nupkg
281277
- name: Build and pack component packages

0 commit comments

Comments
 (0)