-
Notifications
You must be signed in to change notification settings - Fork 5
39 lines (37 loc) · 1.07 KB
/
parse_catalog.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Parse Catalog
on:
push:
branches: ["main"]
workflow_dispatch:
schedule:
- cron: "0 */12 * * *"
jobs:
parse-catalog:
name: dump-catalog-csvs-from-bq
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: "Authenticate to Google Cloud"
id: "auth"
uses: "google-github-actions/auth@v2"
with:
credentials_json: "${{ secrets.GCP_DATAFLOW_SERVICE_KEY }}"
- uses: actions/setup-python@v5
with:
python-version: "3.9"
- name: Install dependencies
# TODO: base on an actual release
run: python -m pip install gcsfs "leap-data-management-utils[bigquery]==0.0.14"
- name: "Parse catalog"
shell: bash
run: |
python scripts/dump_bigquery_to_csv.py
env:
GOOGLE_APPLICATION_CREDENTIALS: "${{ steps.auth.outputs.credentials_file_path }}"
- name: Save csv file as artifacts
uses: actions/upload-artifact@v4
with:
name: csv-files
path: "*.csv"