Skip to content

Set up GitHub workflow to update Google Sheet #1

Set up GitHub workflow to update Google Sheet

Set up GitHub workflow to update Google Sheet #1

Workflow file for this run

# update google sheets
name: Update Google Sheets
on:
push:
branches:
- main
tags:
- '*'
jobs:
update-sheet:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: '3.8'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install google-auth google-auth-oauthlib google-auth-httplib2 google-api-python-client
- name: Update Google Sheets
env:
GOOGLE_APPLICATION_CREDENTIALS: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}
run: echo "${GOOGLE_SHEETS_CREDENTIALS}" > credentials.json
python update_matrix.py