Skip to content

Commit b0c3661

Browse files
fix creds prep
1 parent 17a174c commit b0c3661

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/stackql-assert.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,18 @@ jobs:
1818
uses: actions/checkout@v3
1919

2020

21+
- name: Prep Google Creds (Windows)
22+
if: ${{ matrix.os == 'windows-latest'}}
23+
run: | ## use the secret to create json file
24+
$GoogleCreds = [System.Environment]::GetEnvironmentVariable("GOOGLE_CREDS_ENV")
25+
$GoogleCredsDecoded = [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($GoogleCreds))
26+
Write-Output $GoogleCredsDecoded | Set-Content sa-key.json
27+
shell: pwsh
28+
env:
29+
GOOGLE_CREDS_ENV: ${{ secrets.GOOGLE_CREDS }}
30+
2131
- name: Prep Google Creds (bash)
32+
if: ${{ matrix.os != 'windows-latest' }}
2233
shell: bash
2334
run: | ## use the base64 encoded secret to create json file
2435
sudo echo ${{ secrets.GOOGLE_CREDS }} | base64 -d > sa-key.json

0 commit comments

Comments
 (0)