Skip to content

Commit ad01cbc

Browse files
committed
windows fix
1 parent d432c8a commit ad01cbc

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/setup-stackql.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,8 @@ jobs:
104104
shell: pwsh
105105
run: | ## use the secret to create json file
106106
$GoogleCreds = [System.Environment]::GetEnvironmentVariable("GOOGLE_CREDS_ENV")
107-
$bytes = [System.Text.Encoding]::UTF8.GetBytes($GoogleCreds)
108-
$base64 = [System.Convert]::ToBase64String($bytes)
109-
Write-Output $base64 | Set-Content sa-key.json
107+
$GoogleCredsDecoded = [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($GoogleCreds))
108+
Write-Output $GoogleCredsDecoded | Set-Content sa-key.json
110109
ls sa-key.json
111110
cat sa-key.json
112111

0 commit comments

Comments
 (0)