Skip to content

Commit d432c8a

Browse files
committed
windows fix
1 parent 5b10e35 commit d432c8a

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/setup-stackql.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ jobs:
9797
AUTH: ${{ vars.AUTH }} ##'{ "github": { "type": "basic", "credentialsenvvar": "STACKQL_GITHUB_CREDS" } }'
9898
STACKQL_GITHUB_CREDS: ${{ secrets.STACKQL_GITHUB_CREDS }}
9999

100-
- name: Use Google Provider
100+
- name: Prep Google Creds
101101
env:
102102
GOOGLE_CREDS_ENV: ${{ secrets.GOOGLE_CREDS }}
103103
AUTH: ${{ vars.AUTH }} ## '{ "google": { "type": "service_account", "credentialsfilepath": "sa-key.json" }}'
@@ -107,5 +107,13 @@ jobs:
107107
$bytes = [System.Text.Encoding]::UTF8.GetBytes($GoogleCreds)
108108
$base64 = [System.Convert]::ToBase64String($bytes)
109109
Write-Output $base64 | Set-Content sa-key.json
110+
ls sa-key.json
110111
cat sa-key.json
112+
113+
- name: Use Google Provider
114+
env:
115+
GOOGLE_CREDS_ENV: ${{ secrets.GOOGLE_CREDS }}
116+
AUTH: ${{ vars.AUTH }} ## '{ "google": { "type": "service_account", "credentialsfilepath": "sa-key.json" }}'
117+
shell: pwsh
118+
run: | ## use the secret to create json file
111119
stackql exec -i ./examples/google-example.iql --auth='{ "google": { "type": "service_account", "credentialsfilepath": "sa-key.json" }}'

0 commit comments

Comments
 (0)