Skip to content

Commit

Permalink
chore: print large env vars to be able to fix windows desktop apps bu…
Browse files Browse the repository at this point in the history
…ilds
  • Loading branch information
evereq committed Sep 7, 2024
1 parent d31b6c5 commit 9081bd3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/desktop-timer-app-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -190,18 +190,21 @@ jobs:
echo "Environment Variable Names:"
printenv | cut -d= -f1

Check warning on line 191 in .github/workflows/desktop-timer-app-stage.yml

View workflow job for this annotation

GitHub Actions / Cspell

Unknown word (printenv)
- 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
Expand Down

0 comments on commit 9081bd3

Please sign in to comment.