diff --git a/.github/workflows/desktop-timer-app-stage.yml b/.github/workflows/desktop-timer-app-stage.yml index 4c75067b018..7e23d529593 100644 --- a/.github/workflows/desktop-timer-app-stage.yml +++ b/.github/workflows/desktop-timer-app-stage.yml @@ -190,18 +190,21 @@ jobs: echo "Environment Variable Names:" printenv | cut -d= -f1 - - name: Print environment variables that are large + - name: Print large environment variables names shell: powershell run: | # List all environment variables foreach ($envVar in [System.Environment]::GetEnvironmentVariables().Keys) { - # Get the value of the environment variable - $value = [System.Environment]::GetEnvironmentVariable($envVar) + # Get the value of the environment variable + $value = [System.Environment]::GetEnvironmentVariable($envVar) + # Check if the value is not null + if ($null -ne $value) { # Check if the value length is greater than 100 bytes if ([Text.Encoding]::UTF8.GetByteCount($value) -gt 100) { Write-Output $envVar } + } } - name: Build Desktop Timer App