Skip to content

Feed Bigquery

Feed Bigquery #39

Workflow file for this run

name: Feed Bigquery
on:
push:
# Match all tags
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
run-rake:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2.0'
bundler-cache: true
- name: Install SQLite3 Gem
run: gem install sqlite3 -v '~> 1.4.0'
- run: bundle exec rake update_bigquery_tables
env:
BIGQUERY_CREDENTIALS: ${{ secrets.BIGQUERY_CREDENTIALS }}
BIGQUERY_PROJECT: cross-teacher-services
BIGQUERY_DATASET: dfe_reference_data
- name: Convert Reference Data to SQLite
run: bundle exec rake convert_to_sqlite
- name: Create GitHub Release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release create ${{ github.ref_name }} reference_data_${{ github.ref_name }}.sqlite3 --notes "Reference data for ${{ github.ref_name }}"