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 18
18
uses : actions/checkout@v3
19
19
20
20
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
+
21
31
- name : Prep Google Creds (bash)
32
+ if : ${{ matrix.os != 'windows-latest' }}
22
33
shell : bash
23
34
run : | # # use the base64 encoded secret to create json file
24
35
sudo echo ${{ secrets.GOOGLE_CREDS }} | base64 -d > sa-key.json
You can’t perform that action at this time.
0 commit comments