bq_load_player_games #293
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: bq_load_player_games | |
| on: | |
| schedule: | |
| - cron: '0 0 * * *' # Runs every day at midnight | |
| workflow_dispatch: # Allows manual triggering from the Actions tab | |
| jobs: | |
| bq_load_player_games_job: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout_repository | |
| uses: actions/checkout@v3 | |
| - name: write_gcs_credentials | |
| run: echo '${{ secrets.GCS_KEYFILE }}' > keyfile.json | |
| - name: build_and_run_script | |
| run: | | |
| docker build -t dbt-container . | |
| docker run --rm \ | |
| -v ${{ github.workspace }}/keyfile.json:/keyfile.json \ | |
| dbt-container python3 scripts/bq_load_player_games.py |