File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments