From 9081bd3fd7b81cb64f44974d46a7948ac85591ed Mon Sep 17 00:00:00 2001 From: Ruslan Konviser Date: Sat, 7 Sep 2024 22:21:07 +0200 Subject: [PATCH] chore: print large env vars to be able to fix windows desktop apps builds --- .github/workflows/desktop-timer-app-stage.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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