Skip to content

Commit 2ce7b53

Browse files
author
Ivan Zhakov
committed
Follow-up to r1926628.
* .github/workflows/windows.yml (Prepare Environment): Save only modified environment variables to GITHUB_ENV. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1926643 13f79535-47bb-0310-9956-ffa450edef68
1 parent c3ba9e5 commit 2ce7b53

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/windows.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,11 @@ jobs:
132132
run: |
133133
$root = "C:\Program Files\Microsoft Visual Studio\2022\Enterprise"
134134
Import-Module "$root\Common7\Tools\Microsoft.VisualStudio.DevShell.dll"
135+
$OldEnv = ls env:
135136
Enter-VsDevShell -VsInstallPath $root -DevCmdArguments "-arch=${{ matrix.arch }}"
137+
$NewEnv = ls env:
136138
137-
ls env: | foreach { "$($_.Name)=$($_.Value)" >> $env:GITHUB_ENV }
139+
Compare-Object $OldEnv $NewEnv -Property Name, Value -CaseSensitive | Where-Object -Property SideIndicator -EQ "=>" | foreach { "$($_.Name)=$($_.Value)" >> $env:GITHUB_ENV }
138140
139141
- name: Install dependencies
140142
if: ${{ matrix.packages != '' }}

0 commit comments

Comments
 (0)