Skip to content

Commit 732c9db

Browse files
use a new job to avoid unarchive issue
1 parent 3165b35 commit 732c9db

File tree

1 file changed

+27
-24
lines changed

1 file changed

+27
-24
lines changed

.github/workflows/stackql-exec.yml

Lines changed: 27 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -14,30 +14,30 @@ jobs:
1414
name: 'StackQL exec Google '
1515

1616
steps:
17-
- name: Checkout
18-
uses: actions/checkout@v3
19-
20-
- name: Prep Google Creds (Windows)
21-
if: ${{ matrix.os == 'windows-latest'}}
22-
run: | ## use the secret to create json file
23-
$GoogleCreds = [System.Environment]::GetEnvironmentVariable("GOOGLE_CREDS_ENV")
24-
$GoogleCredsDecoded = [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($GoogleCreds))
25-
Write-Output $GoogleCredsDecoded | Set-Content sa-key.json
26-
shell: pwsh
27-
env:
28-
GOOGLE_CREDS_ENV: ${{ secrets.GOOGLE_CREDS }}
29-
30-
- name: Prep Google Creds (bash)
31-
if: ${{ matrix.os != 'windows-latest' }}
32-
shell: bash
33-
run: | ## use the base64 encoded secret to create json file
34-
sudo echo ${{ secrets.GOOGLE_CREDS }} | base64 -d > sa-key.json
35-
36-
- name: exec google example
37-
uses: ./
38-
with:
39-
auth_obj_path: './stackql_scripts/auth.json'
40-
query_file_path: './stackql_scripts/google-example.iql'
17+
- name: Checkout
18+
uses: actions/checkout@v3
19+
20+
- name: Prep Google Creds (Windows)
21+
if: ${{ matrix.os == 'windows-latest'}}
22+
run: | ## use the secret to create json file
23+
$GoogleCreds = [System.Environment]::GetEnvironmentVariable("GOOGLE_CREDS_ENV")
24+
$GoogleCredsDecoded = [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($GoogleCreds))
25+
Write-Output $GoogleCredsDecoded | Set-Content sa-key.json
26+
shell: pwsh
27+
env:
28+
GOOGLE_CREDS_ENV: ${{ secrets.GOOGLE_CREDS }}
29+
30+
- name: Prep Google Creds (bash)
31+
if: ${{ matrix.os != 'windows-latest' }}
32+
shell: bash
33+
run: | ## use the base64 encoded secret to create json file
34+
sudo echo ${{ secrets.GOOGLE_CREDS }} | base64 -d > sa-key.json
35+
36+
- name: exec google example
37+
uses: ./
38+
with:
39+
auth_obj_path: './stackql_scripts/auth.json'
40+
query_file_path: './stackql_scripts/google-example.iql'
4141

4242
stackql-exec-github-example:
4343
strategy:
@@ -47,6 +47,9 @@ jobs:
4747
name: 'StackQL exec Github '
4848

4949
steps:
50+
- name: Checkout
51+
uses: actions/checkout@v3
52+
5053
- name: exec github example
5154
uses: ./
5255
with:

0 commit comments

Comments
 (0)