Skip to content

Commit 65b92f3

Browse files
committed
platform testing
1 parent 430dbf8 commit 65b92f3

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/setup-stackql.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,10 @@ jobs:
101101
env:
102102
GOOGLE_CREDS_ENV: ${{ secrets.GOOGLE_CREDS }}
103103
AUTH: ${{ vars.AUTH }} ## '{ "google": { "type": "service_account", "credentialsfilepath": "sa-key.json" }}'
104+
shell: pwsh
104105
run: | ## use the secret to create json file
105-
$secrets = Get-Content $Env:GOOGLE_CREDS_ENV
106-
$decoded = [System.Convert]::FromBase64String($secrets)
107-
[System.Text.Encoding]::UTF8.GetString($decoded) | Set-Content sa-key.json
108-
stackql exec -i ./examples/google-example.iql --auth="${AUTH}"
106+
$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
110+
stackql exec -i ./examples/google-example.iql --auth="${AUTH}"

0 commit comments

Comments
 (0)