svn commit: r1926643 - /apr/apr/trunk/.github/workflows/windows.yml

[email protected]
Newsgroups gmane.comp.apache.apr.cvs
Message-ID <[email protected]>
Author: ivan
Date: Sun Jun 22 15:37:51 2025
New Revision: 1926643

URL: http://svn.apache.org/viewvc?rev=1926643&view=rev
Log:
Follow-up to r1926628.

* .github/workflows/windows.yml
  (Prepare Environment): Save only modified environment variables to GITHUB_ENV.

Modified:
    apr/apr/trunk/.github/workflows/windows.yml

Modified: apr/apr/trunk/.github/workflows/windows.yml
URL: http://svn.apache.org/viewvc/apr/apr/trunk/.github/workflows/windows.yml?rev=1926643&r1=1926642&r2=1926643&view=diff
==============================================================================
--- apr/apr/trunk/.github/workflows/windows.yml (original)
+++ apr/apr/trunk/.github/workflows/windows.yml Sun Jun 22 15:37:51 2025
@@ -132,9 +132,11 @@ jobs:
       run: |
         $root = "C:\Program Files\Microsoft Visual Studio\2022\Enterprise"
         Import-Module "$root\Common7\Tools\Microsoft.VisualStudio.DevShell.dll"
+        $OldEnv = ls env:
         Enter-VsDevShell -VsInstallPath $root -DevCmdArguments "-arch=${{ matrix.arch }}"
+        $NewEnv = ls env:
 
-        ls env: | foreach { "$($_.Name)=$($_.Value)" >> $env:GITHUB_ENV }
+        Compare-Object $OldEnv $NewEnv -Property Name, Value -CaseSensitive | Where-Object -Property SideIndicator -EQ "=>" | foreach { "$($_.Name)=$($_.Value)" >> $env:GITHUB_ENV }
 
     - name: Install dependencies
       if: ${{ matrix.packages != '' }}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.