update setup gcloud #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Generate tables on BigQuery | |
on: | |
push: | |
branches: [alistair/test_bq_auth] | |
jobs: | |
create-tables: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: 'read' | |
id-token: 'write' | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- id: 'auth' | |
uses: 'google-github-actions/auth@v2' | |
with: | |
service_account: '[email protected]' | |
workload_identity_provider: 'projects/569883598760/locations/global/workloadIdentityPools/github/providers/mimic-code' | |
- name: 'Set up Cloud SDK' | |
uses: 'google-github-actions/setup-gcloud@v2' | |
with: | |
version: '>= 363.0.0' | |
- name: Test making a table with bigquery | |
run: | | |
echo "Generating tables on BigQuery" | |
bq query --use_legacy_sql=False 'select * from physionet-data.mimiciv_icu.d_items limit 1' |